diff options
author | Max Horn | 2009-11-18 15:22:15 +0000 |
---|---|---|
committer | Max Horn | 2009-11-18 15:22:15 +0000 |
commit | 8aa4083bc9b41b49c582b1d342392c7e5d92dca8 (patch) | |
tree | 45ff592f8eb644ac5e716b673bf0c02732710d4e /backends/platform/gp2xwiz/gp2xwiz-graphics.cpp | |
parent | 974b49ebfe6f71f45f38f70d12395bf1b3124888 (diff) | |
download | scummvm-rg350-8aa4083bc9b41b49c582b1d342392c7e5d92dca8.tar.gz scummvm-rg350-8aa4083bc9b41b49c582b1d342392c7e5d92dca8.tar.bz2 scummvm-rg350-8aa4083bc9b41b49c582b1d342392c7e5d92dca8.zip |
Modify WinCE, LinuxMoto and GP2xWiz backends to use graphics/scaler/downscaler* code (untested as of now)
svn-id: r45975
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-graphics.cpp')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-graphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp index ad4b0fc6ef..8e39b9b114 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp +++ b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp @@ -24,13 +24,13 @@ */ #include "backends/platform/gp2xwiz/gp2xwiz-sdl.h" -#include "backends/platform/gp2xwiz/gp2xwiz-scaler.h" // TODO: Make GFX_HALF/HalfScale generic. #include "common/mutex.h" #include "graphics/font.h" #include "graphics/fontman.h" #include "graphics/scaler.h" #include "graphics/scaler/intern.h" +#include "graphics/scaler/downscaler.h" #include "graphics/surface.h" static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { @@ -91,7 +91,7 @@ void OSystem_GP2XWIZ::setGraphicsModeIntern() { newScalerProc = Normal1x; break; case GFX_HALF: - newScalerProc = HalfScale; + newScalerProc = DownscaleAllByHalf; break; default: @@ -368,7 +368,7 @@ void OSystem_GP2XWIZ::internUpdateScreen() { assert(scalerProc != NULL); - if (_videoMode.mode == GFX_HALF && scalerProc == HalfScale){ + if (_videoMode.mode == GFX_HALF && scalerProc == DownscaleAllByHalf){ if (dst_x%2==1){ dst_x--; dst_w++; @@ -386,7 +386,7 @@ void OSystem_GP2XWIZ::internUpdateScreen() { (byte *)_hwscreen->pixels + dst_x * 2 + dst_y * dstPitch, dstPitch, dst_w, dst_h); } - if (_videoMode.mode == GFX_HALF && scalerProc == HalfScale){ + if (_videoMode.mode == GFX_HALF && scalerProc == DownscaleAllByHalf){ r->w = r->w / 2; r->h = dst_h / 2; } else { |