Commits

Bart van Strien  committed 3d46dd8

Fix for blurry text, bug #85

  • Participants
  • Parent commits 1e377d9

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Font.cpp

 			int g = (int)text[i];
 			if (!glyphs[g]) g = 32; // space
 			glPushMatrix();
-			glTranslatef(0, getHeight(), 0);
+			glTranslatef(0, round(getHeight()), 0);
 			glyphs[g]->draw(0, 0, 0, 1, 1, 0, 0);
 			glPopMatrix();
 			glTranslatef(spacing[g], 0, 0);
 	{
 		if (!glyphs[character]) character = ' ';
 		glPushMatrix();
-		glTranslatef(x, y+getHeight(), 0.0f);
+		glTranslatef(x, round(y+getHeight()), 0.0f);
 		glCallList(list+character);
 		glPopMatrix();
 	}