[Scummvm-git-logs] scummvm master -> 4d59d40f32a1eb9a5aa1451e174c87caa38616ae
criezy
criezy at scummvm.org
Sat Aug 14 02:26: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:
4d59d40f32 OPENGLSDL: Fix compilation with SDL1
Commit: 4d59d40f32a1eb9a5aa1451e174c87caa38616ae
https://github.com/scummvm/scummvm/commit/4d59d40f32a1eb9a5aa1451e174c87caa38616ae
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-08-14T03:25:43+01:00
Commit Message:
OPENGLSDL: Fix compilation with SDL1
Changed paths:
backends/graphics/openglsdl/openglsdl-graphics.cpp
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 87cdb6899f..22ac859cf4 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -660,7 +660,9 @@ bool OpenGLSdlGraphicsManager::notifyEvent(const Common::Event &event) {
_gotResize = false;
// Try to setup the mode.
+#if SDL_VERSION_ATLEAST(2, 0, 0)
unlockWindowSize();
+#endif
if (!setupMode(_lastRequestedWidth * _graphicsScale, _lastRequestedHeight * _graphicsScale)) {
warning("OpenGLSdlGraphicsManager::notifyEvent: Window resize failed ('%s')", SDL_GetError());
g_system->quit();
More information about the Scummvm-git-logs
mailing list