Browse Source

replaced a hardcoded radian conversion with the appropriate macro

Bill Meltsner 15 years ago
parent
commit
23a03d6db4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/opengl/TrueTypeFont.cpp

+ 2 - 2
src/modules/graphics/opengl/TrueTypeFont.cpp

@@ -147,7 +147,7 @@ namespace opengl
 	void TrueTypeFont::print(string text, float x, float y) const
 	void TrueTypeFont::print(string text, float x, float y) const
 	{
 	{
 		glPushMatrix();
 		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;
 		GLuint TrueTypeFont = list;
 		glListBase(TrueTypeFont);
 		glListBase(TrueTypeFont);
 		glCallLists((int)text.length(), GL_UNSIGNED_BYTE, text.c_str());
 		glCallLists((int)text.length(), GL_UNSIGNED_BYTE, text.c_str());
@@ -159,7 +159,7 @@ namespace opengl
 		glPushMatrix();
 		glPushMatrix();
 
 
 		glTranslatef(ceil(x), ceil(y), 0.0f);
 		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);
 		glScalef(sx, sy, 1.0f);
 
 
 		GLuint TrueTypeFont = list;
 		GLuint TrueTypeFont = list;