diff options
author | Johannes Schickel | 2013-01-09 07:00:12 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-01-09 07:24:37 +0100 |
commit | 9f22d60adf62843fac04255d79f1986cdb7fa28a (patch) | |
tree | e36cb2b5afcc8d1e435d9e03970d8841c3bb34a4 | |
parent | 0a495f7faa35530510549ad6510783e993fb2b6f (diff) | |
download | scummvm-rg350-9f22d60adf62843fac04255d79f1986cdb7fa28a.tar.gz scummvm-rg350-9f22d60adf62843fac04255d79f1986cdb7fa28a.tar.bz2 scummvm-rg350-9f22d60adf62843fac04255d79f1986cdb7fa28a.zip |
SDL: Silence C++ narrowing warnings.
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index fb964d6951..02e58ab319 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -968,7 +968,7 @@ void SurfaceSdlGraphicsManager::internUpdateScreen() { // If the shake position changed, fill the dirty area with blackness if (_currentShakePos != _newShakePos || (_mouseNeedsRedraw && _mouseBackup.y <= _currentShakePos)) { - SDL_Rect blackrect = {0, 0, _videoMode.screenWidth * _videoMode.scaleFactor, _newShakePos * _videoMode.scaleFactor}; + SDL_Rect blackrect = {0, 0, (Uint16)(_videoMode.screenWidth * _videoMode.scaleFactor), (Uint16)(_newShakePos * _videoMode.scaleFactor)}; if (_videoMode.aspectRatioCorrection && !_overlayVisible) blackrect.h = real2Aspect(blackrect.h - 1) + 1; |