Fixed view cube text alignment.

This commit is contained in:
Leonardo Zide
2018-09-15 17:19:09 -07:00
parent 39ff605c8b
commit 7ba01dbff7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ void lcViewCube::Draw()
MaxText = Height;
}
float Scale = (BoxSize * 2.0f - 4.0f) / (float)MaxText;
float Scale = BoxSize * 4.0f / 3.0f / (float)MaxText;
lcMatrix44 ViewMatrices[6] =
{
+1 -1
View File
@@ -245,7 +245,7 @@ void TexFont::GetTriangles(const lcMatrix44& Transform, const char* Text, float*
for (const char* ch = Text; *ch; ch++)
{
int Glyph = *Text;
int Glyph = *ch;
Width += mGlyphs[Glyph].width;
}