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

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Thu Apr 12 11:00:17 CEST 2007


Revision: 26454
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26454&view=rev
Author:   drmccoy
Date:     2007-04-12 02:00:16 -0700 (Thu, 12 Apr 2007)

Log Message:
-----------
Fixed an IMD glitch where frames weren't drawn at all (noticable in the CD version's cutscenes after the "IDOL" screen, for example)

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

Modified: scummvm/trunk/engines/gob/imd.cpp
===================================================================
--- scummvm/trunk/engines/gob/imd.cpp	2007-04-11 20:20:22 UTC (rev 26453)
+++ scummvm/trunk/engines/gob/imd.cpp	2007-04-12 09:00:16 UTC (rev 26454)
@@ -393,13 +393,13 @@
 	if (imdPtr->frameCoords) {
 		for (i = 0; i < imdPtr->framesCount; i++) {
 			if (imdPtr->frameCoords[i].left != -1) {
-				imdPtr->frameCoords[i].left -=
+				imdPtr->frameCoords[i].left =
 					imdPtr->frameCoords[i].left - imdPtr->x + x;
-				imdPtr->frameCoords[i].top -=
+				imdPtr->frameCoords[i].top =
 					imdPtr->frameCoords[i].top - imdPtr->y + y;
-				imdPtr->frameCoords[i].right -=
+				imdPtr->frameCoords[i].right =
 					imdPtr->frameCoords[i].right - imdPtr->x + x;
-				imdPtr->frameCoords[i].bottom -=
+				imdPtr->frameCoords[i].bottom =
 					imdPtr->frameCoords[i].bottom - imdPtr->y + y;
 			}
 		}
@@ -421,7 +421,8 @@
 		_vm->_video->drawSprite(imdPtr->surfDesc, dest,
 				imdPtr->frameCoords[frame].left, imdPtr->frameCoords[frame].top,
 				imdPtr->frameCoords[frame].right, imdPtr->frameCoords[frame].bottom,
-				imdPtr->frameCoords[frame].left, imdPtr->frameCoords[frame].top, 1);
+				imdPtr->frameCoords[frame].left + x,
+				imdPtr->frameCoords[frame].top + y, 1);
 	else if (imdPtr->stdX != -1)
 		_vm->_video->drawSprite(imdPtr->surfDesc, dest,
 				imdPtr->stdX, imdPtr->stdY, imdPtr->stdX + imdPtr->stdWidth - 1,


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