[Scummvm-cvs-logs] SF.net SVN: scummvm:[34411] scummvm/trunk/engines/gob/util.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Sun Sep 7 17:29:47 CEST 2008


Revision: 34411
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34411&view=rev
Author:   drmccoy
Date:     2008-09-07 15:29:47 +0000 (Sun, 07 Sep 2008)

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

Modified Paths:
--------------
    scummvm/trunk/engines/gob/util.cpp

Modified: scummvm/trunk/engines/gob/util.cpp
===================================================================
--- scummvm/trunk/engines/gob/util.cpp	2008-09-07 15:22:23 UTC (rev 34410)
+++ scummvm/trunk/engines/gob/util.cpp	2008-09-07 15:29:47 UTC (rev 34411)
@@ -234,8 +234,8 @@
 }
 
 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);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list