Fixed extended ASCII support in BitmapText

This commit is contained in:
Chris Danford
2002-09-22 20:34:11 +00:00
parent bce306dcdc
commit e44141c8d3
6 changed files with 11 additions and 36 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ int Font::GetLineWidthInSourcePixels( const char *szLine, int iLength )
for( int i=0; i<iLength; i++ )
{
const char c = szLine[i];
const int iFrameNo = m_iCharToFrameNo[c];
const int iFrameNo = m_iCharToFrameNo[ (unsigned char)c ];
if( iFrameNo == -1 ) // this font doesn't impelemnt this character
throw RageException( "The font '%s' does not implement the character '%c'", m_sTexturePath, c );