aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x
diff options
context:
space:
mode:
authorAndre Heider2010-05-09 11:00:17 +0000
committerAndre Heider2010-05-09 11:00:17 +0000
commita3e428f6dbfd39c14495909b5e748d8581e3ad2b (patch)
treea8385d0bdfc21d8a3a279a12e85aab920e266ef1 /backends/platform/gp2x
parentcff786341f22352066da235a288b876c3c2b1612 (diff)
downloadscummvm-rg350-a3e428f6dbfd39c14495909b5e748d8581e3ad2b.tar.gz
scummvm-rg350-a3e428f6dbfd39c14495909b5e748d8581e3ad2b.tar.bz2
scummvm-rg350-a3e428f6dbfd39c14495909b5e748d8581e3ad2b.zip
Rename DISABLE_*SCALERS to USE_*SCALERS, and move the mk/cpp defines to configure.
svn-id: r48977
Diffstat (limited to 'backends/platform/gp2x')
-rw-r--r--backends/platform/gp2x/gp2x-common.h1
-rw-r--r--backends/platform/gp2x/graphics.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/backends/platform/gp2x/gp2x-common.h b/backends/platform/gp2x/gp2x-common.h
index 4199a5d032..79eb3f65cf 100644
--- a/backends/platform/gp2x/gp2x-common.h
+++ b/backends/platform/gp2x/gp2x-common.h
@@ -34,7 +34,6 @@
#define __GP2X__
#define USE_OSD
-/* #define DISABLE_SCALERS */
#define MIXER_DOUBLE_BUFFERING 1
namespace Audio {
diff --git a/backends/platform/gp2x/graphics.cpp b/backends/platform/gp2x/graphics.cpp
index 8f6f67c5d6..243c37dcb1 100644
--- a/backends/platform/gp2x/graphics.cpp
+++ b/backends/platform/gp2x/graphics.cpp
@@ -1114,7 +1114,7 @@ void OSystem_GP2X::clearOverlay() {
_scalerProc((byte *)(_tmpscreen->pixels) + _tmpscreen->pitch + 2, _tmpscreen->pitch,
(byte *)_overlayscreen->pixels, _overlayscreen->pitch, _videoMode.screenWidth, _videoMode.screenHeight);
-#ifndef DISABLE_SCALERS
+#ifdef USE_SCALERS
if (_videoMode.aspectRatioCorrection)
stretch200To240((uint8 *)_overlayscreen->pixels, _overlayscreen->pitch,
_videoMode.overlayWidth, _videoMode.screenHeight * _videoMode.scaleFactor, 0, 0, 0);