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.
pull/221/head
Patric Stout 3 years ago committed by Patric Stout
parent 19fdbac287
commit 08821f82b6

@ -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);

Loading…
Cancel
Save