diff options
author | Cameron Cawley | 2018-07-08 22:13:53 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-07-08 22:20:28 +0100 |
commit | d93fe85994c9ada46e1d7e03db4de692ba799047 (patch) | |
tree | 9c7433e671ad61b0cf16c891acb9787bdd532046 | |
parent | 5cff361f042b40590a3525681198b14c6f33454d (diff) | |
download | scummvm-rg350-d93fe85994c9ada46e1d7e03db4de692ba799047.tar.gz scummvm-rg350-d93fe85994c9ada46e1d7e03db4de692ba799047.tar.bz2 scummvm-rg350-d93fe85994c9ada46e1d7e03db4de692ba799047.zip |
BACKENDS: Fix compilation with SDL 1.2
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 1ca89022ac..ac758e4424 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -335,9 +335,9 @@ void SurfaceSdlGraphicsManager::beginGFXTransaction() { _transactionDetails.needHotswap = false; _transactionDetails.needUpdatescreen = false; - _transactionDetails.needDisplayResize = false; #if SDL_VERSION_ATLEAST(2, 0, 0) + _transactionDetails.needDisplayResize = false; _transactionDetails.needTextureUpdate = false; #endif #ifdef USE_RGB_COLOR @@ -448,8 +448,10 @@ OSystem::TransactionError SurfaceSdlGraphicsManager::endGFXTransaction() { // To fix this issue we update the screen change count right here. _screenChangeCount++; +#if SDL_VERSION_ATLEAST(2, 0, 0) if (_transactionDetails.needDisplayResize) recalculateDisplayAreas(); +#endif if (_transactionDetails.needUpdatescreen) internUpdateScreen(); } @@ -463,8 +465,10 @@ OSystem::TransactionError SurfaceSdlGraphicsManager::endGFXTransaction() { #endif } else if (_transactionDetails.needUpdatescreen) { setGraphicsModeIntern(); +#if SDL_VERSION_ATLEAST(2, 0, 0) if (_transactionDetails.needDisplayResize) recalculateDisplayAreas(); +#endif internUpdateScreen(); } |