mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
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:
parent
4545486e08
commit
feace2609e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue