Browse Source
fix os timer in windows dispatcher (#19597)
Co-authored-by: Tim Nootny <tim.nootny@empowersuite.com>
pull/16226/merge
Swarley97
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Windows/Avalonia.Win32/Win32DispatcherImpl.cs
|
|
|
@ -46,7 +46,7 @@ internal class Win32DispatcherImpl : IControlledDispatcherImpl |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var interval = (uint)Math.Min(int.MaxValue - 10, Math.Max(1, Now - dueTimeInMs.Value)); |
|
|
|
var interval = (uint)Math.Min(int.MaxValue - 10, Math.Max(1, dueTimeInMs.Value - Now)); |
|
|
|
SetTimer( |
|
|
|
_messageWindow, |
|
|
|
(IntPtr)Win32Platform.TIMERID_DISPATCHER, |
|
|
|
|