[Scummvm-git-logs] scummvm master -> 39d396cf83fed4077df19e755fc9dcac35d5da7b

rsn8887 rsn8887 at users.noreply.github.com
Wed Apr 21 19:16:04 UTC 2021


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:
39d396cf83 SWITCH: Fix wrong zoom in 3D games


Commit: 39d396cf83fed4077df19e755fc9dcac35d5da7b
    https://github.com/scummvm/scummvm/commit/39d396cf83fed4077df19e755fc9dcac35d5da7b
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2021-04-21T14:14:51-05:00

Commit Message:
SWITCH: Fix wrong zoom in 3D games

Changed paths:
    backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp


diff --git a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
index 8da6f94447..c70ea24632 100644
--- a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
+++ b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp
@@ -440,6 +440,12 @@ bool OpenGLSdlGraphics3dManager::createOrUpdateGLContext(uint gameWidth, uint ga
 #if SDL_VERSION_ATLEAST(2, 0, 0)
 		uint32 sdlflags = SDL_WINDOW_OPENGL;
 
+#ifdef NINTENDO_SWITCH
+		// Switch quirk: Switch seems to need this flag, otherwise the screen
+		// is zoomed when switching from Normal graphics mode to OpenGL
+		sdlflags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
+#endif
+
 		if (renderToFramebuffer || engineSupportsArbitraryResolutions) {
 			sdlflags |= SDL_WINDOW_RESIZABLE;
 		}




More information about the Scummvm-git-logs mailing list