diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-28 20:36:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 20:36:42 +0200 |
commit | d05e6003f049d7d478b763c6ec0e474f0f05a713 (patch) | |
tree | 977d98b8d4ac985d6f578615b574e7e6a929ca88 /src/common | |
parent | Merge pull request #6671 from jls47/master (diff) | |
parent | Merge branch 'master' into fullscreen-enum (diff) | |
download | yuzu-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')
-rw-r--r-- | src/common/settings.h | 11 |
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"}; |