diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 57c100fa6..6c1fe80ef 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -108,6 +108,9 @@ bool parseArgs(int argc, char* argv[]) Settings::getInstance()->setBool("Debug", true); Settings::getInstance()->setBool("HideConsole", false); Log::setReportingLevel(LogDebug); + }else if(strcmp(argv[i], "--fullscreen-borderless") == 0) + { + Settings::getInstance()->setBool("FullscreenBorderless", true); }else if(strcmp(argv[i], "--windowed") == 0) { Settings::getInstance()->setBool("Windowed", true); diff --git a/es-core/src/Renderer_init_sdlgl.cpp b/es-core/src/Renderer_init_sdlgl.cpp index 8beb8930d..f87cddd0c 100644 --- a/es-core/src/Renderer_init_sdlgl.cpp +++ b/es-core/src/Renderer_init_sdlgl.cpp @@ -73,7 +73,7 @@ namespace Renderer sdlWindow = SDL_CreateWindow("EmulationStation", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, windowWidth, windowHeight, - SDL_WINDOW_OPENGL | (Settings::getInstance()->getBool("Windowed") ? 0 : SDL_WINDOW_FULLSCREEN)); + SDL_WINDOW_OPENGL | (Settings::getInstance()->getBool("Windowed") ? 0 : (Settings::getInstance()->getBool("FullscreenBorderless") ? SDL_WINDOW_BORDERLESS : SDL_WINDOW_FULLSCREEN))); if(sdlWindow == NULL) { diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 1a38ae5d2..4a0c24630 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -24,6 +24,7 @@ std::vector settings_dont_save { { "SplashScreen" }, { "SplashScreenProgress" }, { "VSync" }, + { "FullscreenBorderless" }, { "Windowed" }, { "WindowWidth" }, { "WindowHeight" }, @@ -59,6 +60,7 @@ void Settings::setDefaults() mBoolMap["ShowHiddenFiles"] = false; mBoolMap["DrawFramerate"] = false; mBoolMap["ShowExit"] = true; + mBoolMap["FullscreenBorderless"] = false; mBoolMap["Windowed"] = false; mBoolMap["SplashScreen"] = true; mBoolMap["SplashScreenProgress"] = true;