mirror of https://github.com/snes9xgit/snes9x.git
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