mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
-pos=<x>,<y> -> correct error when not present
This commit is contained in:
parent
c97e3acce7
commit
c301a574ed
|
@ -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<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);
|
||||
SDL_SetWindowPosition(s_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||
|
||||
if (s_runtime_config["BorderLess"].ValueAs<bool>())
|
||||
SDL_SetWindowBordered(s_window, SDL_FALSE);
|
||||
|
|
Loading…
Reference in a new issue