Prevent user changing clock stopping message pumping

TODO: Audit other usages of DateTime.Now assuming it is monotonic (also use DateTime.UtcNow where applicable to avoid DST causing issues)
This commit is contained in:
CasualPokePlayer 2024-07-10 01:48:52 -07:00
parent e44810a725
commit 662fd83f5e
1 changed files with 1 additions and 1 deletions

View File

@ -2404,7 +2404,7 @@ namespace BizHawk.Client.EmuHawk
// only check window messages a maximum of once per millisecond
// this check is irrelvant for the 99% of cases where fps are <1k
// but gives a slight fps boost in those scenarios
if ((currentTime - _lastMessageCheck).Milliseconds > 0)
if ((uint)(currentTime - _lastMessageCheck).Milliseconds > 0)
{
_lastMessageCheck = currentTime;
Application.DoEvents();