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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Jul 6 13:03:10 CEST 2010


Revision: 50720
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50720&view=rev
Author:   m_kiewitz
Date:     2010-07-06 11:03:10 +0000 (Tue, 06 Jul 2010)

Log Message:
-----------
SCI: fix regression of r50599 - broken greyed font drawing

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

Modified: scummvm/trunk/engines/sci/graphics/font.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/font.cpp	2010-07-06 07:42:25 UTC (rev 50719)
+++ scummvm/trunk/engines/sci/graphics/font.cpp	2010-07-06 11:03:10 UTC (rev 50720)
@@ -83,11 +83,12 @@
 	int charHeight = MIN<int>(getCharHeight(chr), _screen->getHeight() - top);
 	byte b = 0, mask = 0xFF;
 	int y = 0;
+	int16 greyedTop = top;
 
 	byte *pIn = getCharData(chr);
 	for (int i = 0; i < charHeight; i++, y++) {
 		if (greyedOutput)
-			mask = top++ % 2 ? 0xAA : 0x55;
+			mask = greyedTop++ % 2 ? 0xAA : 0x55;
 		for (int done = 0; done < charWidth; done++) {
 			if ((done & 7) == 0) // fetching next data byte
 				b = *(pIn++) & mask;


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