diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-07-23 16:11:42 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-07-23 16:14:37 +0200 |
commit | b11c81cc1337b55f42a1653771517add1fb47d0c (patch) | |
tree | fd60b0c57f3d064db578399406cce7b0da1fc693 /src/common/settings.h | |
parent | Merge pull request #6686 from ReinUsesLisp/vk-optimal-copy (diff) | |
download | yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.gz yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.bz2 yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.lz yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.xz yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.zst yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.zip |
Diffstat (limited to '')
-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 ce1bc647d..fd2a263ec 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -36,6 +36,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 @@ -313,11 +318,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"}; |