Win32: only save window position if not in fullscreen
This commit is contained in:
parent
e68a1e9786
commit
01bf98aaaf
@ -557,6 +557,7 @@ void SaveMainWinPos()
|
|||||||
wndPlacement.length = sizeof(WINDOWPLACEMENT);
|
wndPlacement.length = sizeof(WINDOWPLACEMENT);
|
||||||
GetWindowPlacement(GUI.hWnd,&wndPlacement);
|
GetWindowPlacement(GUI.hWnd,&wndPlacement);
|
||||||
GUI.window_maximized = wndPlacement.showCmd == SW_SHOWMAXIMIZED;
|
GUI.window_maximized = wndPlacement.showCmd == SW_SHOWMAXIMIZED;
|
||||||
|
if(!GUI.FullScreen && !GUI.EmulatedFullscreen)
|
||||||
GUI.window_size = wndPlacement.rcNormalPosition;
|
GUI.window_size = wndPlacement.rcNormalPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user