[Scummvm-cvs-logs] SF.net SVN: scummvm:[34412] scummvm/branches/branch-0-12-0/engines/gob/util .cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Sun Sep 7 17:30:01 CEST 2008


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

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

Modified Paths:
--------------
    scummvm/branches/branch-0-12-0/engines/gob/util.cpp

Modified: scummvm/branches/branch-0-12-0/engines/gob/util.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/gob/util.cpp	2008-09-07 15:29:47 UTC (rev 34411)
+++ scummvm/branches/branch-0-12-0/engines/gob/util.cpp	2008-09-07 15:30:00 UTC (rev 34412)
@@ -238,8 +238,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