[Scummvm-cvs-logs] SF.net SVN: scummvm:[42823] scummvm/trunk/graphics/sjis.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Jul 26 16:40:03 CEST 2009
Revision: 42823
http://scummvm.svn.sourceforge.net/scummvm/?rev=42823&view=rev
Author: lordhoto
Date: 2009-07-26 14:40:03 +0000 (Sun, 26 Jul 2009)
Log Message:
-----------
Instead of only printing a warning, when no SJIS char data is present, just return to the caller.
Modified Paths:
--------------
scummvm/trunk/graphics/sjis.cpp
Modified: scummvm/trunk/graphics/sjis.cpp
===================================================================
--- scummvm/trunk/graphics/sjis.cpp 2009-07-26 14:24:45 UTC (rev 42822)
+++ scummvm/trunk/graphics/sjis.cpp 2009-07-26 14:40:03 UTC (rev 42823)
@@ -106,8 +106,10 @@
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 (!glyphSource) {
+ warning("FontSJIS16x16::drawChar: Font does not offer data for %02X %02X", ch & 0xFF, ch >> 8);
+ return;
+ }
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