mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
-pos=<x>,<y> -> correct error when not present
This commit is contained in:
parent
c97e3acce7
commit
c301a574ed
|
@ -1087,8 +1087,7 @@ 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<std::string>() != "NA" &&
|
||||
s_runtime_config["Ypos"].ValueAs<std::string>() != "NA" )
|
||||
if ( !s_runtime_config["Xpos"].Empty() && !s_runtime_config["Xpos"].Empty())
|
||||
SDL_SetWindowPosition(s_window, s_runtime_config["Xpos"].ValueAs<unsigned>(), s_runtime_config["Ypos"].ValueAs<unsigned>());
|
||||
else
|
||||
SDL_SetWindowPosition(s_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||
|
|
Loading…
Reference in a new issue