Actually, /now/ the values are sane ^^; (also fixes Ween mouse position bug #2046244)

svn-id: r34411
This commit is contained in:
Sven Hesse 2008-09-07 15:29:47 +00:00
parent a7d917ea43
commit 7eaad9da66

View File

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