diff options
author | Johannes Schickel | 2009-07-26 14:18:06 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-26 14:18:06 +0000 |
commit | 15662b3cfbfe6bde789c68e20c20ff4b8ef2eb37 (patch) | |
tree | 86692179de163b581b6502fe3684d17cb18fa28f | |
parent | ebc74a7c9bf9c8066723eb79223970d6238463a8 (diff) | |
download | scummvm-rg350-15662b3cfbfe6bde789c68e20c20ff4b8ef2eb37.tar.gz scummvm-rg350-15662b3cfbfe6bde789c68e20c20ff4b8ef2eb37.tar.bz2 scummvm-rg350-15662b3cfbfe6bde789c68e20c20ff4b8ef2eb37.zip |
Print warning, when client code does try to draw an unsupported SJIS char.
svn-id: r42817
-rw-r--r-- | graphics/sjis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp index d4702fc89e..d46ac3e965 100644 --- a/graphics/sjis.cpp +++ b/graphics/sjis.cpp @@ -103,6 +103,8 @@ void FontSJIS16x16::drawCharIntern(const uint16 *glyph, uint8 *dst, int pitch, C 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) |