Print warning, when client code does try to draw an unsupported SJIS char.
svn-id: r42817
This commit is contained in:
parent
ebc74a7c9b
commit
15662b3cfb
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
void FontSJIS16x16::drawChar(void *dst, uint16 ch, int pitch, int bpp, uint32 c1, uint32 c2) const {
|
||||||
const uint16 *glyphSource = getCharData(ch);
|
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 (bpp == 1) {
|
||||||
if (!_outlineEnabled)
|
if (!_outlineEnabled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue