summaryrefslogtreecommitdiffstats
path: root/src/common/settings.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-28 20:36:42 +0200
committerGitHub <noreply@github.com>2021-07-28 20:36:42 +0200
commitd05e6003f049d7d478b763c6ec0e474f0f05a713 (patch)
tree977d98b8d4ac985d6f578615b574e7e6a929ca88 /src/common/settings.h
parentMerge pull request #6671 from jls47/master (diff)
parentMerge branch 'master' into fullscreen-enum (diff)
downloadyuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar.gz
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar.bz2
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar.lz
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar.xz
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.tar.zst
yuzu-d05e6003f049d7d478b763c6ec0e474f0f05a713.zip
Diffstat (limited to 'src/common/settings.h')
-rw-r--r--src/common/settings.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/settings.h b/src/common/settings.h
index d8730f515..cfc1ab46f 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -42,6 +42,11 @@ enum class CPUAccuracy : u32 {
Unsafe = 2,
};
+enum class FullscreenMode : u32 {
+ Borderless = 0,
+ Exclusive = 1,
+};
+
/** The BasicSetting class is a simple resource manager. It defines a label and default value
* alongside the actual value of the setting for simpler and less-error prone use with frontend
* configurations. Setting a default value and label is required, though subclasses may deviate from
@@ -322,11 +327,11 @@ struct Values {
Setting<u16> resolution_factor{1, "resolution_factor"};
// *nix platforms may have issues with the borderless windowed fullscreen mode.
// Default to exclusive fullscreen on these platforms for now.
- Setting<int> fullscreen_mode{
+ Setting<FullscreenMode> fullscreen_mode{
#ifdef _WIN32
- 0,
+ FullscreenMode::Borderless,
#else
- 1,
+ FullscreenMode::Exclusive,
#endif
"fullscreen_mode"};
Setting<int> aspect_ratio{0, "aspect_ratio"};