SWITCH: Fix wrong zoom in 3D games

This commit is contained in:
rsn8887 2021-04-21 14:14:51 -05:00
parent 22308d119e
commit 39d396cf83

View File

@ -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;
}