diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 024d422886a..12a62b4cc60 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -544,11 +544,13 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) { handleResize(actualWidth, actualHeight); +#ifdef WIN32 // WORKAROUND: Prevent (nearly) offscreen positioning of the ScummVM window by forcefully // trigger a re-positioning event to center the window. if (!_wantsFullScreen && !(SDL_GetWindowFlags(_window->getSDLWindow()) & SDL_WINDOW_MAXIMIZED)) { SDL_SetWindowPosition(_window->getSDLWindow(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); } +#endif return true; #else // WORKAROUND: Working around infamous SDL bugs when switching