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)) {
|
if(S9xDisplayOutput->Initialize(GUI.hWnd)) {
|
||||||
S9xGraphicsDeinit();
|
S9xGraphicsDeinit();
|
||||||
S9xSetWinPixelFormat ();
|
S9xSetWinPixelFormat ();
|
||||||
S9xInitUpdate();
|
|
||||||
S9xGraphicsInit();
|
S9xGraphicsInit();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2342,9 +2342,9 @@ LRESULT CALLBACK WinProc(
|
||||||
S9xClearPause(PAUSE_MENU);
|
S9xClearPause(PAUSE_MENU);
|
||||||
break;
|
break;
|
||||||
case WM_DISPLAYCHANGE:
|
case WM_DISPLAYCHANGE:
|
||||||
if (!GUI.FullScreen)
|
if (!GUI.FullScreen && !(Settings.ForcedPause & PAUSE_TOGGLE_FULL_SCREEN))
|
||||||
{
|
{
|
||||||
//WinDisplayReset();
|
WinDisplayReset();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
|
|
Loading…
Reference in New Issue