diff options
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index 896181f0b..8dfc09393 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |||
| @@ -122,12 +122,6 @@ void EmuWindow_SDL2::OnResize() { | |||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void EmuWindow_SDL2::Fullscreen() { | 124 | void EmuWindow_SDL2::Fullscreen() { |
| 125 | if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN) == 0) { | ||
| 126 | return; | ||
| 127 | } | ||
| 128 | |||
| 129 | LOG_ERROR(Frontend, "Fullscreening failed: {}", SDL_GetError()); | ||
| 130 | |||
| 131 | // Try a different fullscreening method | 125 | // Try a different fullscreening method |
| 132 | LOG_INFO(Frontend, "Attempting to use borderless fullscreen..."); | 126 | LOG_INFO(Frontend, "Attempting to use borderless fullscreen..."); |
| 133 | if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN_DESKTOP) == 0) { | 127 | if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN_DESKTOP) == 0) { |
| @@ -136,6 +130,12 @@ void EmuWindow_SDL2::Fullscreen() { | |||
| 136 | 130 | ||
| 137 | LOG_ERROR(Frontend, "Borderless fullscreening failed: {}", SDL_GetError()); | 131 | LOG_ERROR(Frontend, "Borderless fullscreening failed: {}", SDL_GetError()); |
| 138 | 132 | ||
| 133 | if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN) == 0) { | ||
| 134 | return; | ||
| 135 | } | ||
| 136 | |||
| 137 | LOG_ERROR(Frontend, "Fullscreening failed: {}", SDL_GetError()); | ||
| 138 | |||
| 139 | // Fallback algorithm: Maximise window. | 139 | // Fallback algorithm: Maximise window. |
| 140 | // Works on all systems (unless something is seriously wrong), so no fallback for this one. | 140 | // Works on all systems (unless something is seriously wrong), so no fallback for this one. |
| 141 | LOG_INFO(Frontend, "Falling back on a maximised window..."); | 141 | LOG_INFO(Frontend, "Falling back on a maximised window..."); |