mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-15 04:58:36 +00:00
Win32: react to WM_DISPLAYCHANGE (hopefully without crashing)
This commit is contained in:
parent
f505626dda
commit
2c3b9f1f63
@ -256,7 +256,6 @@ bool WinDisplayReset(void)
|
||||
if(S9xDisplayOutput->Initialize(GUI.hWnd)) {
|
||||
S9xGraphicsDeinit();
|
||||
S9xSetWinPixelFormat ();
|
||||
S9xInitUpdate();
|
||||
S9xGraphicsInit();
|
||||
return true;
|
||||
} else {
|
||||
|
@ -2342,9 +2342,9 @@ LRESULT CALLBACK WinProc(
|
||||
S9xClearPause(PAUSE_MENU);
|
||||
break;
|
||||
case WM_DISPLAYCHANGE:
|
||||
if (!GUI.FullScreen)
|
||||
if (!GUI.FullScreen && !(Settings.ForcedPause & PAUSE_TOGGLE_FULL_SCREEN))
|
||||
{
|
||||
//WinDisplayReset();
|
||||
WinDisplayReset();
|
||||
}
|
||||
break;
|
||||
case WM_MOUSEMOVE:
|
||||
|
Loading…
Reference in New Issue
Block a user