mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Merge pull request #546 from tomaz82/fullscreen_borderless
Add support for fullscreen borderless window
This commit is contained in:
commit
f9e48897d3
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -24,6 +24,7 @@ std::vector<const char*> 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;
|
||||
|
|
Loading…
Reference in a new issue