diff options
author | Kostas Nakos | 2006-07-26 17:25:14 +0000 |
---|---|---|
committer | Kostas Nakos | 2006-07-26 17:25:14 +0000 |
commit | c11a5c939d45ae6889f7a67bc515c0cda93ca643 (patch) | |
tree | 4a53ce81ada773475e9cd5e88dde621f85324292 /backends/platform/wince | |
parent | ec6a9b0071b859bb9ae5fc75f1cba932b8f1e5e4 (diff) | |
download | scummvm-rg350-c11a5c939d45ae6889f7a67bc515c0cda93ca643.tar.gz scummvm-rg350-c11a5c939d45ae6889f7a67bc515c0cda93ca643.tar.bz2 scummvm-rg350-c11a5c939d45ae6889f7a67bc515c0cda93ca643.zip |
fix bug 1521718 (dpad mouse emulation) (backport)
svn-id: r23600
Diffstat (limited to 'backends/platform/wince')
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index b1ad143679..2f50fcdecd 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -483,8 +483,8 @@ void OSystem_WINCE3::move_cursor_down() { else y += _stepY1; - if (y > 240) - y = 240; + if (y > _screenHeight*_scaleFactorYm/_scaleFactorYd) + y = _screenHeight*_scaleFactorYm/_scaleFactorYd; EventsBuffer::simulateMouseMove(x, y); } @@ -519,8 +519,8 @@ void OSystem_WINCE3::move_cursor_right() { else x += _stepX1; - if (x > 320) - x = 320; + if (x > _screenWidth*_scaleFactorXm/_scaleFactorXd) + x = _screenWidth*_scaleFactorXm/_scaleFactorXd; EventsBuffer::simulateMouseMove(x, y); } |