Win32: react to WM_DISPLAYCHANGE (hopefully without crashing)

This commit is contained in:
OV2 2011-05-07 23:16:10 +02:00
parent f505626dda
commit 2c3b9f1f63
2 changed files with 2 additions and 3 deletions

View File

@ -256,7 +256,6 @@ bool WinDisplayReset(void)
if(S9xDisplayOutput->Initialize(GUI.hWnd)) {
S9xGraphicsDeinit();
S9xSetWinPixelFormat ();
S9xInitUpdate();
S9xGraphicsInit();
return true;
} else {

View File

@ -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: