浏览代码

(Hopefully) fixed bug where extended ASCII characters would not display properly.

Bill Meltsner 15 年之前
父节点
当前提交
a34640bcfd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/Font.cpp

+ 1 - 1
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);