[Scummvm-cvs-logs] SF.net SVN: scummvm:[49440] scummvm/trunk/engines/sci/engine/kgraphics.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Jun 5 20:15:42 CEST 2010
Revision: 49440
http://scummvm.svn.sourceforge.net/scummvm/?rev=49440&view=rev
Author: thebluegr
Date: 2010-06-05 18:15:41 +0000 (Sat, 05 Jun 2010)
Log Message:
-----------
Fixed the cursor limiting code in GK1
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-06-05 17:38:12 UTC (rev 49439)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-06-05 18:15:41 UTC (rev 49440)
@@ -148,6 +148,10 @@
int16 bottom = argv[2].toSint16();
int16 right = argv[3].toSint16();
+ // In SCI32, the right parameter seems to be divided by 2
+ if (getSciVersion() >= SCI_VERSION_2)
+ right *= 2;
+
if ((right >= left) && (bottom >= top)) {
Common::Rect rect = Common::Rect(left, top, right, bottom);
g_sci->_gfxCursor->kernelSetMoveZone(rect);
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