From a34640bcfd3caf6a693e8aba2c3cdb058994a6c1 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Thu, 14 Oct 2010 16:17:21 -0500 Subject: [PATCH] (Hopefully) fixed bug where extended ASCII characters would not display properly. --- src/modules/graphics/opengl/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Font.cpp b/src/modules/graphics/opengl/Font.cpp index e5ba2771e..e47b0f1f1 100644 --- a/src/modules/graphics/opengl/Font.cpp +++ b/src/modules/graphics/opengl/Font.cpp @@ -73,7 +73,7 @@ namespace opengl glRotatef(LOVE_TODEG(angle), 0, 0, 1.0f); glScalef(sx, sy, 1.0f); for (unsigned int i = 0; i < text.size(); i++) { - int g = (int)text[i]; + unsigned char g = (unsigned char)text[i]; if (!glyphs[g]) g = 32; // space glPushMatrix(); glTranslatef(0, round(getHeight()), 0);