Commit e901ce49ea283e58189ccf2eba7211d457a0b37e

henry 2001-08-06T20:57:54

Changed char* to unsigend char* to fix bug when displaying chars >127

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index 6eeb0df..5c81e06 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -104,7 +104,7 @@ void	FTFont::BBox( const char* text, int& llx, int& lly, int& urx, int& ury ) co
 
 void FTFont::render( const char* string )
 {
-	const char* c = string;
+	const unsigned char* c = (unsigned char*)string; // This is ugly, what is the c++ way?
 	FT_Vector kernAdvance;
 	pen.x = 0; pen.y = 0;