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

Commit

Permalink
fix(win32): also check height when saving window dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamaropoulos committed Mar 27, 2020
1 parent 1069905 commit 4cf8131
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 4cf8131

Please sign in to comment.