GUI: possibly remember maximized state

This commit is contained in:
tildearrow 2022-04-27 20:40:30 -05:00
parent 180ff2457d
commit f057581b27

View file

@ -3613,6 +3613,10 @@ bool FurnaceGUI::init() {
}
if (SDL_GetDisplayUsableBounds(SDL_GetWindowDisplayIndex(sdlWin),&displaySize)==0) {
if (scrW>((displaySize.w/dpiScale)-32) && scrH>((displaySize.h/dpiScale)-32)) {
// maximize
SDL_MaximizeWindow(sdlWin);
}
if (scrW>displaySize.w/dpiScale) scrW=(displaySize.w/dpiScale)-32;
if (scrH>displaySize.h/dpiScale) scrH=(displaySize.h/dpiScale)-32;
if (!fullScreen) {