diff options
author | John Willis | 2009-08-03 18:38:46 +0000 |
---|---|---|
committer | John Willis | 2009-08-03 18:38:46 +0000 |
commit | 6dbdad02e5f48951797c3dafdb48f76055bf730d (patch) | |
tree | 0c5643c7d30f7896cfd9ef8145fe6c00d3a0f48d /backends/platform/gp2xwiz/gp2xwiz-graphics.cpp | |
parent | c2dc86df08c5d0dc034789d265cc1a7aa7966fc0 (diff) | |
download | scummvm-rg350-6dbdad02e5f48951797c3dafdb48f76055bf730d.tar.gz scummvm-rg350-6dbdad02e5f48951797c3dafdb48f76055bf730d.tar.bz2 scummvm-rg350-6dbdad02e5f48951797c3dafdb48f76055bf730d.zip |
GP2XWiz: Fix bug with downscaled cursors.
svn-id: r43029
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-graphics.cpp')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-graphics.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp index faa326e6f5..90f2c821aa 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp +++ b/backends/platform/gp2xwiz/gp2xwiz-graphics.cpp @@ -115,8 +115,6 @@ void OSystem_GP2XWIZ::setGraphicsModeIntern() { void OSystem_GP2XWIZ::initSize(uint w, uint h) { assert(_transactionMode == kTransactionActive); - printf("Init Size: w=%d, h=%d\n", w, h); - // Avoid redundant res changes if ((int)w == _videoMode.screenWidth && (int)h == _videoMode.screenHeight) return; @@ -371,11 +369,11 @@ void OSystem_GP2XWIZ::internUpdateScreen() { assert(scalerProc != NULL); if(_videoMode.mode == GFX_HALF && scalerProc == HalfScale){ - if(dst_x % 2 == 1){ + if(dst_x%2==1){ dst_x--; dst_w++; } - if(dst_y % 2 == 1){ + if(dst_y%2==1){ dst_y--; dst_h++; } @@ -441,8 +439,8 @@ void OSystem_GP2XWIZ::showOverlay() { void OSystem_GP2XWIZ::hideOverlay() { if(_videoMode.mode == GFX_HALF){ - _mouseCurState.x = _mouseCurState.x / 2; - _mouseCurState.y = _mouseCurState.y / 2; + _mouseCurState.x = _mouseCurState.x * 2; + _mouseCurState.y = _mouseCurState.y * 2; } OSystem_SDL::hideOverlay(); } |