mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
fix bug 1521718 (dpad mouse emulation) (backport)
svn-id: r23600
This commit is contained in:
parent
ec6a9b0071
commit
c11a5c939d
@ -483,8 +483,8 @@ void OSystem_WINCE3::move_cursor_down() {
|
|||||||
else
|
else
|
||||||
y += _stepY1;
|
y += _stepY1;
|
||||||
|
|
||||||
if (y > 240)
|
if (y > _screenHeight*_scaleFactorYm/_scaleFactorYd)
|
||||||
y = 240;
|
y = _screenHeight*_scaleFactorYm/_scaleFactorYd;
|
||||||
|
|
||||||
EventsBuffer::simulateMouseMove(x, y);
|
EventsBuffer::simulateMouseMove(x, y);
|
||||||
}
|
}
|
||||||
@ -519,8 +519,8 @@ void OSystem_WINCE3::move_cursor_right() {
|
|||||||
else
|
else
|
||||||
x += _stepX1;
|
x += _stepX1;
|
||||||
|
|
||||||
if (x > 320)
|
if (x > _screenWidth*_scaleFactorXm/_scaleFactorXd)
|
||||||
x = 320;
|
x = _screenWidth*_scaleFactorXm/_scaleFactorXd;
|
||||||
|
|
||||||
EventsBuffer::simulateMouseMove(x, y);
|
EventsBuffer::simulateMouseMove(x, y);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user