Win32: only save window position if not in fullscreen

This commit is contained in:
OV2 2011-11-30 19:31:59 +01:00
parent e68a1e9786
commit 01bf98aaaf

View File

@ -557,7 +557,8 @@ void SaveMainWinPos()
wndPlacement.length = sizeof(WINDOWPLACEMENT);
GetWindowPlacement(GUI.hWnd,&wndPlacement);
GUI.window_maximized = wndPlacement.showCmd == SW_SHOWMAXIMIZED;
GUI.window_size = wndPlacement.rcNormalPosition;
if(!GUI.FullScreen && !GUI.EmulatedFullscreen)
GUI.window_size = wndPlacement.rcNormalPosition;
}
void RestoreMainWinPos()