mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
This reverts commit f93b9e5bc2.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user