GUI: improve the maximize auto-detection a bit

This commit is contained in:
tildearrow 2022-04-27 20:43:34 -05:00
parent f057581b27
commit ff33eed2fd

View file

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