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
1 changed files with 2 additions and 1 deletions

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()