UI: Fixed main window not refreshing properly on Windows 7 when no game is running

When render is not called, anything that goes over the directx window doesn't get redrawn properly on Win7
This commit is contained in:
Sour 2024-02-29 16:37:58 +09:00
parent 4545486e08
commit feace2609e

View file

@ -75,7 +75,7 @@ void VideoRenderer::RenderThread()
while(!_stopFlag.load()) {
//Wait until a frame is ready, or until 32ms have passed (to allow HUD to update at ~30fps when paused)
bool forceRender = _waitForRender.Wait(32);
bool forceRender = !_waitForRender.Wait(32);
if(_renderer) {
FrameInfo size = _emu->GetVideoDecoder()->GetBaseFrameInfo(true);
_scriptHudSurface.UpdateSize(size.Width * _scriptHudScale, size.Height * _scriptHudScale);