[Scummvm-cvs-logs] SF.net SVN: scummvm:[51174] scummvm/trunk/engines/sci/engine/kgraphics.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Thu Jul 22 23:55:45 CEST 2010


Revision: 51174
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51174&view=rev
Author:   m_kiewitz
Date:     2010-07-22 21:55:45 +0000 (Thu, 22 Jul 2010)

Log Message:
-----------
SCI: kSetCursor change for sci32

we use the movezone like any other rect, but sierra sci actually specifies bottom/right as being the last possible coordinates

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-07-22 21:46:39 UTC (rev 51173)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2010-07-22 21:55:45 UTC (rev 51174)
@@ -149,12 +149,12 @@
 		if (getSciVersion() >= SCI_VERSION_2) {
 			top = argv[1].toSint16();
 			left = argv[0].toSint16();
-			bottom = argv[3].toSint16();
-			right = argv[2].toSint16();
+			bottom = argv[3].toSint16() + 1; // bottom/right needs to get included in our movezone
+			right = argv[2].toSint16() + 1;
 		} else {
 			top = argv[0].toSint16();
 			left = argv[1].toSint16();
-			bottom = argv[2].toSint16();
+			bottom = argv[2].toSint16(); // TODO: check if sci16 behaved the same as sci32
 			right = argv[3].toSint16();
 		}
 


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