From 8800fa982a349f217ea68bb617410748ede5da24 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Wed, 6 Oct 2010 19:33:07 -0400 Subject: [PATCH] made fonts actually print from the top-left. --- src/modules/graphics/opengl/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/opengl/Font.cpp b/src/modules/graphics/opengl/Font.cpp index fad7da6e8..36f1606f5 100644 --- a/src/modules/graphics/opengl/Font.cpp +++ b/src/modules/graphics/opengl/Font.cpp @@ -76,7 +76,7 @@ namespace opengl int g = (int)text[i]; if (!glyphs[g]) g = 32; // space glPushMatrix(); - glTranslatef(0, height, 0); + glTranslatef(0, getHeight(), 0); glyphs[g]->draw(0, 0, 0, 1, 1, 0, 0); glPopMatrix(); glTranslatef(spacing[g], 0, 0); @@ -88,7 +88,7 @@ namespace opengl { if (!glyphs[character]) character = ' '; glPushMatrix(); - glTranslatef(x, y+height, 0.0f); + glTranslatef(x, y+getHeight(), 0.0f); glCallList(list+character); glPopMatrix(); }