*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "bitmap_font.hpp"
{
m_table['0'+i].m_xPos = i * m_width;
}
+ m_table[(size_t)' '].m_xPos = 10 * m_width;
m_table[(size_t)'-'].m_xPos = 11 * m_width;
}
else if( rType == "text" )
uint32_t c = *(pString++);
if( c < 256 && m_table[c].m_xPos != -1 )
{
- pBmp->drawBitmap( m_rBitmap, m_table[c].m_xPos, m_table[c].m_yPos,
- xDest, 0, m_width, m_height );
+ bool res = pBmp->drawBitmap( m_rBitmap, m_table[c].m_xPos,
+ m_table[c].m_yPos, xDest, 0,
+ m_width, m_height );
+ if ( !res )
+ msg_Warn( getIntf(), "BitmapFont::drawString: ignoring char" );
xDest += m_advance;
}
else