fix bug 1521718 (dpad mouse emulation) (backport)

svn-id: r23600
This commit is contained in:
Kostas Nakos 2006-07-26 17:25:14 +00:00
parent ec6a9b0071
commit c11a5c939d

View File

@ -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);
}