mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
GUI: possibly remember maximized state
This commit is contained in:
parent
180ff2457d
commit
f057581b27
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue