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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Oct 28 15:45:26 CET 2009


Revision: 45466
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45466&view=rev
Author:   thebluegr
Date:     2009-10-28 14:45:26 +0000 (Wed, 28 Oct 2009)

Log Message:
-----------
Fixed the rectangle top inside kBaseSetter()

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-10-28 14:35:47 UTC (rev 45465)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-10-28 14:45:26 UTC (rev 45466)
@@ -494,7 +494,7 @@
 		int x = (int16)GET_SEL32V(s->_segMan, object, x);
 		int y = (int16)GET_SEL32V(s->_segMan, object, y);
 		int z = (s->_kernel->_selectorCache.z > -1) ? (int16)GET_SEL32V(s->_segMan, object, z) : 0;
-		//int ystep = (int16)GET_SEL32V(s->_segMan, object, yStep);
+		int ystep = (int16)GET_SEL32V(s->_segMan, object, yStep);
 		int view = GET_SEL32V(s->_segMan, object, view);
 		int loop = GET_SEL32V(s->_segMan, object, loop);
 		int cel = GET_SEL32V(s->_segMan, object, cel);
@@ -504,7 +504,7 @@
 		int left = x + celInfo->displaceX - (celInfo->width >> 1);
 		int right = left + celInfo->width;
 		int bottom = y + celInfo->displaceY - z + 1;
-		int top = bottom - celInfo->height;
+		int top = bottom - ystep;
 
 		debugC(2, kDebugLevelBaseSetter, "(%d,%d)+/-(%d,%d), (%d x %d) -> (%d, %d) to (%d, %d)\n",
 				  x, y, celInfo->displaceX, celInfo->displaceY, celInfo->width, celInfo->height, left, top, bottom, right);


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