[Scummvm-cvs-logs] SF.net SVN: scummvm:[42817] scummvm/trunk/graphics/sjis.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jul 26 16:18:06 CEST 2009


Revision: 42817
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42817&view=rev
Author:   lordhoto
Date:     2009-07-26 14:18:06 +0000 (Sun, 26 Jul 2009)

Log Message:
-----------
Print warning, when client code does try to draw an unsupported SJIS char.

Modified Paths:
--------------
    scummvm/trunk/graphics/sjis.cpp

Modified: scummvm/trunk/graphics/sjis.cpp
===================================================================
--- scummvm/trunk/graphics/sjis.cpp	2009-07-26 14:17:54 UTC (rev 42816)
+++ scummvm/trunk/graphics/sjis.cpp	2009-07-26 14:18:06 UTC (rev 42817)
@@ -103,6 +103,8 @@
 
 void FontSJIS16x16::drawChar(void *dst, uint16 ch, int pitch, int bpp, uint32 c1, uint32 c2) const {
 	const uint16 *glyphSource = getCharData(ch);
+	if (!glyphSource)
+		warning("SJIS: Font does not offer data for %02X %02X", ch & 0xFF, ch >> 8);
 
 	if (bpp == 1) {
 		if (!_outlineEnabled)


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