From f14a7f15d5b1414cbebfdd6bad8f59803e0728b0 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Sun, 18 Aug 2019 16:59:50 -0500 Subject: SWITCH: Force fullscreen always on Windowed mode never worked correctly and is pointless since the Switch operating system doesn't have a window manager. --- backends/platform/sdl/switch/switch.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'backends/platform/sdl/switch/switch.cpp') diff --git a/backends/platform/sdl/switch/switch.cpp b/backends/platform/sdl/switch/switch.cpp index ab8427cf62..1a3c573608 100644 --- a/backends/platform/sdl/switch/switch.cpp +++ b/backends/platform/sdl/switch/switch.cpp @@ -53,12 +53,11 @@ void OSystem_Switch::initBackend() { ConfMan.registerDefault("output_rate", 48000); ConfMan.registerDefault("touchpad_mouse_mode", false); + ConfMan.setBool("fullscreen", true); + if (!ConfMan.hasKey("joystick_num")) { ConfMan.setInt("joystick_num", 0); } - if (!ConfMan.hasKey("fullscreen")) { - ConfMan.setBool("fullscreen", true); - } if (!ConfMan.hasKey("aspect_ratio")) { ConfMan.setBool("aspect_ratio", false); } @@ -90,6 +89,8 @@ void OSystem_Switch::initBackend() { } bool OSystem_Switch::hasFeature(Feature f) { + if (f == kFeatureFullscreenMode) + return false; return (f == kFeatureTouchpadMode || OSystem_SDL::hasFeature(f)); } @@ -99,6 +100,8 @@ void OSystem_Switch::setFeatureState(Feature f, bool enable) { case kFeatureTouchpadMode: ConfMan.setBool("touchpad_mouse_mode", enable); break; + case kFeatureFullscreenMode: + break; default: OSystem_SDL::setFeatureState(f, enable); break; @@ -110,6 +113,9 @@ bool OSystem_Switch::getFeatureState(Feature f) { case kFeatureTouchpadMode: return ConfMan.getBool("touchpad_mouse_mode"); break; + case kFeatureFullscreenMode: + return true; + break; default: return OSystem_SDL::getFeatureState(f); break; -- cgit v1.2.3