Skip to content

Commit

Permalink
Only calling Application.DoEvents on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 28, 2015
1 parent c28a43e commit 12f72c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SonicBGScrollSaver/MainForm.cs
Expand Up @@ -159,7 +159,7 @@ void DrawBackground()
if (frametimes.Count > 0)
{
fpsLabel.Text = "FPS: " + (frametimes.Count / (now - frametimes.Peek()).TotalSeconds).ToString("0.###");
Application.DoEvents();
if (Program.IsWindows) Application.DoEvents();
}
if (frametimes.Count == settings.FramesPerSecond * 5)
frametimes.Dequeue();
Expand Down

0 comments on commit 12f72c8

Please sign in to comment.