aboutsummaryrefslogtreecommitdiff
path: root/graphics/sjis.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-26 14:40:03 +0000
committerJohannes Schickel2009-07-26 14:40:03 +0000
commitd1fed5cee165d9626a7ced40e982b4d7c6a6dc72 (patch)
tree4e7b6ac13fad1f7b3db5b38d38042c698181d7bc /graphics/sjis.cpp
parent07c10c07c4d65426a5931a81d4bbe5388aeed802 (diff)
downloadscummvm-rg350-d1fed5cee165d9626a7ced40e982b4d7c6a6dc72.tar.gz
scummvm-rg350-d1fed5cee165d9626a7ced40e982b4d7c6a6dc72.tar.bz2
scummvm-rg350-d1fed5cee165d9626a7ced40e982b4d7c6a6dc72.zip
Instead of only printing a warning, when no SJIS char data is present, just return to the caller.
svn-id: r42823
Diffstat (limited to 'graphics/sjis.cpp')
-rw-r--r--graphics/sjis.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp
index f1e82fa3e4..405d8622c2 100644
--- a/graphics/sjis.cpp
+++ b/graphics/sjis.cpp
@@ -106,8 +106,10 @@ 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 (!glyphSource) {
+ warning("FontSJIS16x16::drawChar: Font does not offer data for %02X %02X", ch & 0xFF, ch >> 8);
+ return;
+ }
if (bpp == 1) {
if (!_outlineEnabled)