mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Actually, /now/ the values are sane ^^; (also fixes Ween mouse position bug #2046244)
svn-id: r34411
This commit is contained in:
parent
a7d917ea43
commit
7eaad9da66
@ -234,8 +234,8 @@ void Util::getMouseState(int16 *pX, int16 *pY, int16 *pButtons) {
|
||||
}
|
||||
|
||||
void Util::setMousePos(int16 x, int16 y) {
|
||||
x = CLIP<int>(x + _vm->_video->_screenDeltaX, 0, _vm->_width);
|
||||
y = CLIP<int>(y + _vm->_video->_screenDeltaY, 0, _vm->_height);
|
||||
x = CLIP<int>(x + _vm->_video->_screenDeltaX, 0, _vm->_width - 1);
|
||||
y = CLIP<int>(y + _vm->_video->_screenDeltaY, 0, _vm->_height - 1);
|
||||
g_system->warpMouse(x, y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user