summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd
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/yuzu_cmd
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/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 353e51ea7..ea3e0ada4 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -124,7 +124,7 @@ void EmuWindow_SDL2::OnResize() {
void EmuWindow_SDL2::Fullscreen() {
switch (Settings::values.fullscreen_mode.GetValue()) {
- case 1: // Exclusive fullscreen
+ case Settings::FullscreenMode::Exclusive:
// Set window size to render size before entering fullscreen -- SDL does not resize to
// display dimensions in this mode.
// TODO: Multiply the window size by resolution_factor (for both docked modes)
@@ -140,7 +140,7 @@ void EmuWindow_SDL2::Fullscreen() {
LOG_ERROR(Frontend, "Fullscreening failed: {}", SDL_GetError());
LOG_INFO(Frontend, "Attempting to use borderless fullscreen...");
[[fallthrough]];
- case 0: // Borderless window
+ case Settings::FullscreenMode::Borderless:
if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN_DESKTOP) == 0) {
return;
}