From 7eaad9da669b4536f9ce4384bb9dcfeafd89216d Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 7 Sep 2008 15:29:47 +0000 Subject: Actually, /now/ the values are sane ^^; (also fixes Ween mouse position bug #2046244) svn-id: r34411 --- engines/gob/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/gob/util.cpp') diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp index fa1683b109..fcf19f03dd 100644 --- a/engines/gob/util.cpp +++ b/engines/gob/util.cpp @@ -234,8 +234,8 @@ void Util::getMouseState(int16 *pX, int16 *pY, int16 *pButtons) { } void Util::setMousePos(int16 x, int16 y) { - x = CLIP(x + _vm->_video->_screenDeltaX, 0, _vm->_width); - y = CLIP(y + _vm->_video->_screenDeltaY, 0, _vm->_height); + x = CLIP(x + _vm->_video->_screenDeltaX, 0, _vm->_width - 1); + y = CLIP(y + _vm->_video->_screenDeltaY, 0, _vm->_height - 1); g_system->warpMouse(x, y); } -- cgit v1.2.3