Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1849 from Kamaropoulos/Kamaropoulos/cfgSave-windo…
Browse files Browse the repository at this point in the history
…w-dimensions-fix

fix(win32): also check height when saving window dimensions
  • Loading branch information
skmp authored Mar 28, 2020
2 parents 1069905 + 4cf8131 commit 12154b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libswirl/windows/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine
#endif
SetUnhandledExceptionFilter(0);
cfgSaveBool("windows", "maximized", window_maximized);
if (!window_maximized && screen_width != 0 && screen_width != 0)
if (!window_maximized && screen_width != 0 && screen_height != 0)
{
cfgSaveInt("windows", "width", screen_width);
cfgSaveInt("windows", "height", screen_height);
Expand Down

0 comments on commit 12154b2

Please sign in to comment.