diff --git a/common/lc_viewcube.cpp b/common/lc_viewcube.cpp index d25e20b4..4d49c473 100644 --- a/common/lc_viewcube.cpp +++ b/common/lc_viewcube.cpp @@ -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] = { diff --git a/common/texfont.cpp b/common/texfont.cpp index dd4a71c2..74a37623 100644 --- a/common/texfont.cpp +++ b/common/texfont.cpp @@ -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; }