Skip to content

Commit

Permalink
UI: Fixed main window not refreshing properly on Windows 7 when no ga…
Browse files Browse the repository at this point in the history
…me is running

When render is not called, anything that goes over the directx window doesn't get redrawn properly on Win7
  • Loading branch information
SourMesen committed Feb 29, 2024
1 parent 4545486 commit feace26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Shared/Video/VideoRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit feace26

Please sign in to comment.