summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-04-04 05:43:36 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-04-06 11:58:57 +0200
commit8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66 (patch)
tree071cc84b8eba73f05009c2a35295d680ccd584b3
parentconfigure_graphics: Add Borderless Windowed fullscreen mode (diff)
downloadyuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar.gz
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar.bz2
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar.lz
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar.xz
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.tar.zst
yuzu-8ce31f1c8eadb9e0f5348b7f7971acfa66db0e66.zip
-rw-r--r--src/yuzu/configuration/config.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 712a69944..2dfe271f0 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -770,7 +770,13 @@ void Config::ReadRendererValues() {
ReadSettingGlobal(Settings::values.renderer_backend, QStringLiteral("backend"), 0);
ReadSettingGlobal(Settings::values.renderer_debug, QStringLiteral("debug"), false);
ReadSettingGlobal(Settings::values.vulkan_device, QStringLiteral("vulkan_device"), 0);
+#ifdef _WIN32
ReadSettingGlobal(Settings::values.fullscreen_mode, QStringLiteral("fullscreen_mode"), 0);
+#else
+ // *nix platforms may have issues with the borderless windowed fullscreen mode.
+ // Default to exclusive fullscreen on these platforms for now.
+ ReadSettingGlobal(Settings::values.fullscreen_mode, QStringLiteral("fullscreen_mode"), 1);
+#endif
ReadSettingGlobal(Settings::values.aspect_ratio, QStringLiteral("aspect_ratio"), 0);
ReadSettingGlobal(Settings::values.max_anisotropy, QStringLiteral("max_anisotropy"), 0);
ReadSettingGlobal(Settings::values.use_frame_limit, QStringLiteral("use_frame_limit"), true);
@@ -1334,7 +1340,13 @@ void Config::SaveRendererValues() {
Settings::values.renderer_backend.UsingGlobal(), 0);
WriteSetting(QStringLiteral("debug"), Settings::values.renderer_debug, false);
WriteSettingGlobal(QStringLiteral("vulkan_device"), Settings::values.vulkan_device, 0);
+#ifdef _WIN32
WriteSettingGlobal(QStringLiteral("fullscreen_mode"), Settings::values.fullscreen_mode, 0);
+#else
+ // *nix platforms may have issues with the borderless windowed fullscreen mode.
+ // Default to exclusive fullscreen on these platforms for now.
+ WriteSettingGlobal(QStringLiteral("fullscreen_mode"), Settings::values.fullscreen_mode, 1);
+#endif
WriteSettingGlobal(QStringLiteral("aspect_ratio"), Settings::values.aspect_ratio, 0);
WriteSettingGlobal(QStringLiteral("max_anisotropy"), Settings::values.max_anisotropy, 0);
WriteSettingGlobal(QStringLiteral("use_frame_limit"), Settings::values.use_frame_limit, true);