mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
(Hopefully) fixed bug where extended ASCII characters would not display properly.
This commit is contained in:
@@ -73,7 +73,7 @@ namespace opengl
|
|||||||
glRotatef(LOVE_TODEG(angle), 0, 0, 1.0f);
|
glRotatef(LOVE_TODEG(angle), 0, 0, 1.0f);
|
||||||
glScalef(sx, sy, 1.0f);
|
glScalef(sx, sy, 1.0f);
|
||||||
for (unsigned int i = 0; i < text.size(); i++) {
|
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
|
if (!glyphs[g]) g = 32; // space
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslatef(0, round(getHeight()), 0);
|
glTranslatef(0, round(getHeight()), 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user