Commit 01c9ca88 authored by Olivier Teulière's avatar Olivier Teulière

* skins2/src/bitmap_font.cpp: log a warning if a char cannot be rendered

parent d90c8058
...@@ -104,8 +104,11 @@ GenericBitmap *BitmapFont::drawString( const UString &rString, ...@@ -104,8 +104,11 @@ GenericBitmap *BitmapFont::drawString( const UString &rString,
uint32_t c = *(pString++); uint32_t c = *(pString++);
if( c < 256 && m_table[c].m_xPos != -1 ) if( c < 256 && m_table[c].m_xPos != -1 )
{ {
pBmp->drawBitmap( m_rBitmap, m_table[c].m_xPos, m_table[c].m_yPos, bool res = pBmp->drawBitmap( m_rBitmap, m_table[c].m_xPos,
xDest, 0, m_width, m_height ); m_table[c].m_yPos, xDest, 0,
m_width, m_height );
if ( !res )
msg_Warn( getIntf(), "BitmapFont::drawString: ignoring char" );
xDest += m_advance; xDest += m_advance;
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment