aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-05-20 15:43:27 +0000
committerPaweł Kołodziejski2006-05-20 15:43:27 +0000
commite7a4b46479170e1436bf5c97c348c4f08a679906 (patch)
tree0c09e31b87db98dabb93f775945ff154c4a881fb /backends
parentda9bf4dd717e75b911b806167df07389f3cff71b (diff)
downloadscummvm-rg350-e7a4b46479170e1436bf5c97c348c4f08a679906.tar.gz
scummvm-rg350-e7a4b46479170e1436bf5c97c348c4f08a679906.tar.bz2
scummvm-rg350-e7a4b46479170e1436bf5c97c348c4f08a679906.zip
fixed compilation when DISABLE_SCALERS
svn-id: r22551
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp
index c3cba82b50..054ca9922b 100644
--- a/backends/sdl/graphics.cpp
+++ b/backends/sdl/graphics.cpp
@@ -1135,9 +1135,11 @@ void OSystem_SDL::clearOverlay() {
_scalerProc((byte *)(_tmpscreen->pixels) + _tmpscreen->pitch + 2, _tmpscreen->pitch,
(byte *)_overlayscreen->pixels, _overlayscreen->pitch, _screenWidth, _screenHeight);
+#ifndef DISABLE_SCALERS
if (_adjustAspectRatio)
stretch200To240((uint8 *)_overlayscreen->pixels, _overlayscreen->pitch,
_overlayWidth, _screenHeight * _scaleFactor, 0, 0, 0);
+#endif
SDL_UnlockSurface(_tmpscreen);
SDL_UnlockSurface(_overlayscreen);