[Scummvm-cvs-logs] SF.net SVN: scummvm:[45062] scummvm/trunk/engines/sci/gui/gui_picture.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Wed Oct 14 11:56:11 CEST 2009


Revision: 45062
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45062&view=rev
Author:   m_kiewitz
Date:     2009-10-14 09:56:11 +0000 (Wed, 14 Oct 2009)

Log Message:
-----------
SCI/newgui: coordinates fixup for embeeded cels

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_picture.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_picture.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-14 09:46:02 UTC (rev 45061)
+++ scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-14 09:56:11 UTC (rev 45062)
@@ -209,7 +209,7 @@
 		while (y < lastY) {
 			curByte = *ptr++;
 			if ((curByte != clearColor) && (priority >= _screen->getPriority(x, y)))
-				_screen->putPixel(callerX + x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0);
+				_screen->putPixel(x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0);
 			x++;
 			if (x >= rightX) {
 				x = leftX; y++;
@@ -221,7 +221,7 @@
 		while (y < lastY) {
 			curByte = *ptr++;
 			if ((curByte != clearColor) && (priority >= _screen->getPriority(x, y)))
-				_screen->putPixel(callerX + x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0);
+				_screen->putPixel(x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0);
 			if (x == leftX) {
 				x = rightX; y++;
 			}


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