Fixed view cube text alignment.
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user