diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-07-19 20:18:03 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-07-20 22:02:57 +0200 |
| commit | cd94ff19663ad1d0bb65395d8b822b56d3603863 (patch) | |
| tree | 05fda618ce5a6760cec40fc2735b8ae1d6dd9b61 /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | 340087199248917139169b157a1b141b348ad972 (diff) | |
VideoConfig: Add "Borderless Fullscreen" option.
This option will disable exclusive fullscreen for users who prefer the old behaviour.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 1dc75e4ba2..d995ae2d4b 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -39,6 +39,7 @@ VideoConfig::VideoConfig() backend_info.bUseRGBATextures = false; backend_info.bUseMinimalMipCount = false; backend_info.bSupports3DVision = false; + backend_info.bSupportsExclusiveFullscreen = false; } void VideoConfig::Load(const std::string& ini_file) @@ -83,6 +84,7 @@ void VideoConfig::Load(const std::string& ini_file) settings->Get("DisableFog", &bDisableFog, 0); settings->Get("OMPDecoder", &bOMPDecoder, false); settings->Get("EnableShaderDebugging", &bEnableShaderDebugging, false); + settings->Get("ForceBorderlessFullscreen", &bForceBorderlessFullscreen, false); IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements"); enhancements->Get("ForceFiltering", &bForceFiltering, 0); @@ -211,6 +213,7 @@ void VideoConfig::VerifyValidity() if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 0; if (iMultisampleMode < 0 || iMultisampleMode >= (int)backend_info.AAModes.size()) iMultisampleMode = 0; if (!backend_info.bSupports3DVision) b3DVision = false; + if (!backend_info.bSupportsExclusiveFullscreen) bForceBorderlessFullscreen = false; } void VideoConfig::Save(const std::string& ini_file) @@ -255,6 +258,7 @@ void VideoConfig::Save(const std::string& ini_file) settings->Set("DisableFog", bDisableFog); settings->Set("OMPDecoder", bOMPDecoder); settings->Set("EnableShaderDebugging", bEnableShaderDebugging); + settings->Set("ForceBorderlessFullscreen", bForceBorderlessFullscreen); IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements"); enhancements->Set("ForceFiltering", bForceFiltering); |
