summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar lat9nq2021-07-23 10:11:42 -0400
committerGravatar lat9nq2021-07-23 10:14:37 -0400
commitb11c81cc1337b55f42a1653771517add1fb47d0c (patch)
treefd60b0c57f3d064db578399406cce7b0da1fc693 /src/common
parentMerge pull request #6686 from ReinUsesLisp/vk-optimal-copy (diff)
downloadyuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.gz
yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.tar.xz
yuzu-b11c81cc1337b55f42a1653771517add1fb47d0c.zip
general: Implement FullscreenMode enumeration
Prevents us from using an unclear 0 or 1 to describe the fullscreen mode.
Diffstat (limited to 'src/common')
-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 ce1bc647d..fd2a263ec 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -36,6 +36,11 @@ enum class CPUAccuracy : u32 {
36 Unsafe = 2, 36 Unsafe = 2,
37}; 37};
38 38
39enum class FullscreenMode : u32 {
40 Borderless = 0,
41 Exclusive = 1,
42};
43
39/** The BasicSetting class is a simple resource manager. It defines a label and default value 44/** The BasicSetting class is a simple resource manager. It defines a label and default value
40 * alongside the actual value of the setting for simpler and less-error prone use with frontend 45 * alongside the actual value of the setting for simpler and less-error prone use with frontend
41 * configurations. Setting a default value and label is required, though subclasses may deviate from 46 * configurations. Setting a default value and label is required, though subclasses may deviate from
@@ -313,11 +318,11 @@ struct Values {
313 Setting<u16> resolution_factor{1, "resolution_factor"}; 318 Setting<u16> resolution_factor{1, "resolution_factor"};
314 // *nix platforms may have issues with the borderless windowed fullscreen mode. 319 // *nix platforms may have issues with the borderless windowed fullscreen mode.
315 // Default to exclusive fullscreen on these platforms for now. 320 // Default to exclusive fullscreen on these platforms for now.
316 Setting<int> fullscreen_mode{ 321 Setting<FullscreenMode> fullscreen_mode{
317#ifdef _WIN32 322#ifdef _WIN32
318 0, 323 FullscreenMode::Borderless,
319#else 324#else
320 1, 325 FullscreenMode::Exclusive,
321#endif 326#endif
322 "fullscreen_mode"}; 327 "fullscreen_mode"};
323 Setting<int> aspect_ratio{0, "aspect_ratio"}; 328 Setting<int> aspect_ratio{0, "aspect_ratio"};