[Scummvm-git-logs] scummvm master -> f14a7f15d5b1414cbebfdd6bad8f59803e0728b0

rsn8887 rsn8887 at users.noreply.github.com
Mon Aug 19 00:04:25 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f14a7f15d5 SWITCH: Force fullscreen always on


Commit: f14a7f15d5b1414cbebfdd6bad8f59803e0728b0
    https://github.com/scummvm/scummvm/commit/f14a7f15d5b1414cbebfdd6bad8f59803e0728b0
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2019-08-18T17:03:51-05:00

Commit Message:
SWITCH: Force fullscreen always on

Windowed mode never worked correctly and is pointless since the
Switch operating system doesn't have a window manager.

Changed paths:
    backends/platform/sdl/switch/switch.cpp


diff --git a/backends/platform/sdl/switch/switch.cpp b/backends/platform/sdl/switch/switch.cpp
index ab8427c..1a3c573 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;





More information about the Scummvm-git-logs mailing list