Revert "set window coord as UNDEFINED only if x||y==-1 (#185)" (#199)

This reverts commit f93b9e5bc2.
This commit is contained in:
Irastris
2026-05-17 19:12:16 -04:00
committed by GitHub
parent e254aca5ab
commit 6f5b36f7d7
+5
View File
@@ -295,6 +295,11 @@ bool create_window(AuroraBackend backend) {
Sint32 posX = g_config.windowPosX;
Sint32 posY = g_config.windowPosY;
if (posX < 0 || posY < 0) {
posX = SDL_WINDOWPOS_UNDEFINED;
posY = SDL_WINDOWPOS_UNDEFINED;
}
const auto props = SDL_CreateProperties();
TRY(SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, g_config.appName), "Failed to set {}: {}",
SDL_PROP_WINDOW_CREATE_TITLE_STRING, SDL_GetError());