[Scummvm-cvs-logs] SF.net SVN: scummvm:[51350] scummvm/trunk/engines/sci/graphics/frameout.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Jul 27 11:17:57 CEST 2010


Revision: 51350
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51350&view=rev
Author:   m_kiewitz
Date:     2010-07-27 09:17:57 +0000 (Tue, 27 Jul 2010)

Log Message:
-----------
SCI: translating nsRect back to actual plane coordinate

on scrollable planes

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/frameout.cpp

Modified: scummvm/trunk/engines/sci/graphics/frameout.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/frameout.cpp	2010-07-27 08:43:10 UTC (rev 51349)
+++ scummvm/trunk/engines/sci/graphics/frameout.cpp	2010-07-27 09:17:57 UTC (rev 51350)
@@ -420,6 +420,8 @@
 						view->getCelScaledRect(itemEntry->loopNo, itemEntry->celNo, itemEntry->x, itemEntry->y, itemEntry->z, itemEntry->scaleX, itemEntry->scaleY, itemEntry->celRect);
 
 					Common::Rect nsRect = itemEntry->celRect;
+					// Translate back to actual coordinate within scrollable plane
+					nsRect.translate(planeOffsetX, 0);
 					switch (getSciVersion()) {
 					case SCI_VERSION_2:
 						if (view->isSci2Hires()) {


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