[Scummvm-cvs-logs] SF.net SVN: scummvm:[42993] scummvm/branches/gsoc2009-draci/engines/draci/ font.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sun Aug 2 07:16:36 CEST 2009


Revision: 42993
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42993&view=rev
Author:   dkasak13
Date:     2009-08-02 05:16:36 +0000 (Sun, 02 Aug 2009)

Log Message:
-----------
* Fixed bug in Font::getStringWidth() which made it miscalculate string widths (a temporary variable used for storing the width of the current line was not being reset).
* Temporarily disabled font transparency because the dragon's text is rendered hollow (transparency inside glyph bodies). 

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/font.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-08-02 05:12:42 UTC (rev 42992)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-08-02 05:16:36 UTC (rev 42993)
@@ -179,7 +179,12 @@
 			}
 			
 			// Paint pixel (if not transparent)
-			if (colour != _transparent)			
+			// HACK: Temporary turned off transparency because the dragon's colour of the
+			// font appears to be 255 (which should be transparent).
+			// This would not be a problem if the font background was also not colour
+			// 255 (apparently) so I don't know how to handle the background being 
+			// transparent and at the same time a non-transparent font body.
+			//if (colour != _transparent)			
 				ptr[x] = colour;
 		}
 
@@ -279,7 +284,8 @@
 			if (tmp > width) {
 				width = tmp;
 			}
-			continue;
+
+			tmp = 0;
 		}
 	}
 


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