mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
OPENGLSDL: Fix compilation with SDL1
This commit is contained in:
parent
fe750d5fe1
commit
4d59d40f32
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user