From 23a03d6db41d78c9d061d804c28f220b7b01476c Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Wed, 24 Mar 2010 00:43:37 -0500 Subject: [PATCH] replaced a hardcoded radian conversion with the appropriate macro --- src/modules/graphics/opengl/TrueTypeFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/opengl/TrueTypeFont.cpp b/src/modules/graphics/opengl/TrueTypeFont.cpp index 9f658654b..f75be1971 100644 --- a/src/modules/graphics/opengl/TrueTypeFont.cpp +++ b/src/modules/graphics/opengl/TrueTypeFont.cpp @@ -147,7 +147,7 @@ namespace opengl void TrueTypeFont::print(string text, float x, float y) const { glPushMatrix(); - glTranslatef(ceil(x), ceil(y), 0.0f); // + getHeight() to make the x,y coordiantes the top left corner + glTranslatef(ceil(x), ceil(y), 0.0f); // + getHeight() to make the x,y coordinates the top left corner GLuint TrueTypeFont = list; glListBase(TrueTypeFont); glCallLists((int)text.length(), GL_UNSIGNED_BYTE, text.c_str()); @@ -159,7 +159,7 @@ namespace opengl glPushMatrix(); glTranslatef(ceil(x), ceil(y), 0.0f); - glRotatef(angle * 57.29578f, 0, 0, 1.0f); + glRotatef(LOVE_TORAD(angle), 0, 0, 1.0f); glScalef(sx, sy, 1.0f); GLuint TrueTypeFont = list;