From 08821f82b60e535b2ba95a97361a8cb4dd085e98 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 20 Feb 2021 10:30:50 +0100 Subject: Fix: [Win32] run InteractiveRandom() once every tick, not once every message Win32 was the only video driver doing this. It is just a bit too much random. --- src/video/win32_v.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/video/win32_v.cpp') diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index e758f38e7..f3ae911b7 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -1165,8 +1165,9 @@ void VideoDriver_Win32::MainLoop() CheckPaletteAnim(); for (;;) { + InteractiveRandom(); // randomness + while (PeekMessage(&mesg, nullptr, 0, 0, PM_REMOVE)) { - InteractiveRandom(); // randomness /* Convert key messages to char messages if we want text input. */ if (EditBoxInGlobalFocus()) TranslateMessage(&mesg); DispatchMessage(&mesg); -- cgit v1.2.3-54-g00ecf