From 4d59d40f32a1eb9a5aa1451e174c87caa38616ae Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 14 Aug 2021 03:25:13 +0100 Subject: [PATCH] OPENGLSDL: Fix compilation with SDL1 --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 87cdb6899f3..22ac859cf45 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();