OPENGLSDL: Fix compilation with SDL1

This commit is contained in:
Thierry Crozat 2021-08-14 03:25:13 +01:00
parent fe750d5fe1
commit 4d59d40f32

View File

@ -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();