Skip to content

Commit

Permalink
Prevent user changing clock stopping message pumping
Browse files Browse the repository at this point in the history
TODO: Audit other usages of DateTime.Now assuming it is monotonic (also use DateTime.UtcNow where applicable to avoid DST causing issues)
  • Loading branch information
CasualPokePlayer committed Jul 10, 2024
1 parent e44810a commit 662fd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Client.EmuHawk/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ private void CheckMessages()
// 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();
Expand Down

0 comments on commit 662fd83

Please sign in to comment.