Qt: Allow toggling fullscreen when VM is paused

This commit is contained in:
Stenzek
2024-01-20 20:24:28 +10:00
parent ecd8d97f72
commit 429cb4f351
4 changed files with 28 additions and 7 deletions

View File

@ -322,7 +322,12 @@ void Host::ResizeDisplayWindow(s32 width, s32 height, float scale)
if (System::IsValid())
{
if (System::IsPaused())
{
// Hackity hack, on some systems, presenting a single frame isn't enough to actually get it
// displayed. Two seems to be good enough. Maybe something to do with direct scanout.
System::InvalidateDisplay();
System::InvalidateDisplay();
}
System::HostDisplayResized();
}