From feace2609e425e8d3e73540cb73ffe5cce989fad Mon Sep 17 00:00:00 2001 From: Sour Date: Thu, 29 Feb 2024 16:37:58 +0900 Subject: [PATCH] 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 --- Core/Shared/Video/VideoRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Shared/Video/VideoRenderer.cpp b/Core/Shared/Video/VideoRenderer.cpp index cee23c333..b70a21381 100644 --- a/Core/Shared/Video/VideoRenderer.cpp +++ b/Core/Shared/Video/VideoRenderer.cpp @@ -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);