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.
This commit is contained in:
Patric Stout 2021-02-20 10:30:50 +01:00 committed by Patric Stout
parent 19fdbac287
commit 08821f82b6

View File

@ -1165,8 +1165,9 @@ void VideoDriver_Win32::MainLoop()
CheckPaletteAnim(); CheckPaletteAnim();
for (;;) { for (;;) {
InteractiveRandom(); // randomness
while (PeekMessage(&mesg, nullptr, 0, 0, PM_REMOVE)) { while (PeekMessage(&mesg, nullptr, 0, 0, PM_REMOVE)) {
InteractiveRandom(); // randomness
/* Convert key messages to char messages if we want text input. */ /* Convert key messages to char messages if we want text input. */
if (EditBoxInGlobalFocus()) TranslateMessage(&mesg); if (EditBoxInGlobalFocus()) TranslateMessage(&mesg);
DispatchMessage(&mesg); DispatchMessage(&mesg);