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/wince/wince-sdl.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/wince/wince-sdl.cpp')
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index 42d0fadf6f..75e882f43e 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -50,8 +50,10 @@ #include "backends/platform/wince/CEActionsSmartphone.h" #include "backends/platform/wince/CEgui/ItemAction.h" +#include "graphics/scaler/downscaler.h" #include "backends/platform/wince/CEException.h" +#include "backends/platform/wince/CEScaler.h" #ifdef USE_VORBIS #ifndef USE_TREMOR @@ -590,19 +592,19 @@ void OSystem_WINCE3::swap_zoom_up() { _toolbarHandler.setVisible(_saveToolbarZoom); // restore scaler _scaleFactorYd = 2; - _scalerProc = PocketPCHalf; + _scalerProc = DownscaleAllByHalf; _zoomUp = false; _zoomDown = false; } else { // only active if running on a PocketPC - if (_scalerProc != PocketPCHalf && _scalerProc != PocketPCHalfZoom) + if (_scalerProc != DownscaleAllByHalf && _scalerProc != DownscaleHorizByHalf) return; - if (_scalerProc == PocketPCHalf) { + if (_scalerProc == DownscaleAllByHalf) { _saveToolbarZoom = _toolbarHandler.visible(); _toolbarHandler.setVisible(false); // set zoom scaler _scaleFactorYd = 1; - _scalerProc = PocketPCHalfZoom; + _scalerProc = DownscaleHorizByHalf; } _zoomDown = false; @@ -619,19 +621,19 @@ void OSystem_WINCE3::swap_zoom_down() { _toolbarHandler.setVisible(_saveToolbarZoom); // restore scaler _scaleFactorYd = 2; - _scalerProc = PocketPCHalf; + _scalerProc = DownscaleAllByHalf; _zoomDown = false; _zoomUp = false; } else { // only active if running on a PocketPC - if (_scalerProc != PocketPCHalf && _scalerProc != PocketPCHalfZoom) + if (_scalerProc != DownscaleAllByHalf && _scalerProc != DownscaleHorizByHalf) return; - if (_scalerProc == PocketPCHalf) { + if (_scalerProc == DownscaleAllByHalf) { _saveToolbarZoom = _toolbarHandler.visible(); _toolbarHandler.setVisible(false); // set zoom scaler _scaleFactorYd = 1; - _scalerProc = PocketPCHalfZoom; + _scalerProc = DownscaleHorizByHalf; } _zoomUp = false; @@ -1180,7 +1182,7 @@ bool OSystem_WINCE3::update_scalers() { _scaleFactorXd = 2; _scaleFactorYm = 1; _scaleFactorYd = 2; - _scalerProc = PocketPCHalf; + _scalerProc = DownscaleAllByHalf; _modeFlags = 0; } else if (_videoMode.screenWidth == 640 && (isOzone() && (getScreenWidth() >= 640 || getScreenHeight() >= 640))) { _scaleFactorXm = 1; |