From 9b820cc0b6e644f928feead82a50471076ad0dcf Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Wed, 20 Jan 2021 14:23:03 +0200 Subject: Fix CFont::PrintStringFromBottom --- src/render/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/Font.cpp') diff --git a/src/render/Font.cpp b/src/render/Font.cpp index 3798c5f2..de1ee8b4 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -741,7 +741,7 @@ void CFont::PrintStringFromBottom(float x, float y, wchar *str) { y -= (32.0f * Details.scaleY / 2.0f + 2.0f * Details.scaleY) * GetNumberLines(x, y, str); - if (Details.slant == 0.0f) + if (Details.slant != 0.0f) y -= ((Details.slantRefX - x) * Details.slant + Details.slantRefY); PrintString(x, y, str); } -- cgit v1.2.3