diff options
Diffstat (limited to 'src/common/settings.h')
| -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 { | |||
| 36 | Unsafe = 2, | 36 | Unsafe = 2, |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | enum 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"}; |