SDL2: restore window position on startup

This commit is contained in:
Thomas Bernard
2020-11-13 19:10:49 +01:00
parent 58c53c33b8
commit 7de6a95291
3 changed files with 16 additions and 2 deletions

View File

@@ -1251,7 +1251,7 @@ void Program_shutdown(void)
Config.Window_pos_y = windowplacement.rcNormalPosition.top;
}
}
#elif !defined(USE_X11)
#elif !defined(USE_X11) && !defined(USE_SDL2)
// All other targets: irrelevant dimensions.
// Do not attempt to force them back on next program run.
Config.Window_pos_x = 9999;