aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/dinguxsdl
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-10 14:06:34 +0200
committerEugene Sandulenko2016-04-10 14:06:34 +0200
commit39dc1dd2e1c436b4cc75367c0f6a31452334930e (patch)
tree69644d89ec73b7cc93cbc7a00c5a55bfcaaa1efd /backends/graphics/dinguxsdl
parent849ab0d9d30044e522d314bd625b62f0cbb92fa2 (diff)
downloadscummvm-rg350-39dc1dd2e1c436b4cc75367c0f6a31452334930e.tar.gz
scummvm-rg350-39dc1dd2e1c436b4cc75367c0f6a31452334930e.tar.bz2
scummvm-rg350-39dc1dd2e1c436b4cc75367c0f6a31452334930e.zip
GCW0: Enable building with all scalers disabled
Diffstat (limited to 'backends/graphics/dinguxsdl')
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
index 0b9cc0c7e8..7a248f1859 100644
--- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
+++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
@@ -35,6 +35,10 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{0, 0, 0}
};
+#ifndef USE_SCALERS
+#define DownscaleAllByHalf 0
+#endif
+
DINGUXSdlGraphicsManager::DINGUXSdlGraphicsManager(SdlEventSource *boss, SdlWindow *window)
: SurfaceSdlGraphicsManager(boss, window) {
}
@@ -61,9 +65,11 @@ bool DINGUXSdlGraphicsManager::setGraphicsMode(int mode) {
case GFX_NORMAL:
newScaleFactor = 1;
break;
+#ifdef USE_SCALERS
case GFX_HALF:
newScaleFactor = 1;
break;
+#endif
default:
warning("unknown gfx mode %d", mode);
return false;
@@ -89,9 +95,11 @@ void DINGUXSdlGraphicsManager::setGraphicsModeIntern() {
case GFX_NORMAL:
newScalerProc = Normal1x;
break;
+#ifdef USE_SCALERS
case GFX_HALF:
newScalerProc = DownscaleAllByHalf;
break;
+#endif
default:
error("Unknown gfx mode %d", _videoMode.mode);