From c301a574ed346e5908400c32e73173a751876654 Mon Sep 17 00:00:00 2001 From: joachim Date: Thu, 2 Mar 2023 14:30:12 +0100 Subject: [PATCH] -pos=, -> correct error when not present --- Src/OSD/SDL/Main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index b688b44..9c557d0 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -1087,11 +1087,10 @@ int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *In SDL_SetWindowTitle(s_window, baseTitleStr); SDL_SetWindowSize(s_window, totalXRes, totalYRes); - if ( s_runtime_config["Xpos"].ValueAs() != "NA" && - s_runtime_config["Ypos"].ValueAs() != "NA" ) + if ( !s_runtime_config["Xpos"].Empty() && !s_runtime_config["Xpos"].Empty()) SDL_SetWindowPosition(s_window, s_runtime_config["Xpos"].ValueAs(), s_runtime_config["Ypos"].ValueAs()); else - SDL_SetWindowPosition(s_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); + SDL_SetWindowPosition(s_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); if (s_runtime_config["BorderLess"].ValueAs()) SDL_SetWindowBordered(s_window, SDL_FALSE);