summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-20 14:23:03 +0200
committerSergeanur <s.anureev@yandex.ua>2021-01-20 14:23:03 +0200
commit9b820cc0b6e644f928feead82a50471076ad0dcf (patch)
treeb07fe85d61816da100601dfdb7e6b392a20cb669 /src/render
parent2c1c5debca859c8f1330f45e9d5d65c8e55b8a0c (diff)
Fix CFont::PrintStringFromBottom
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Font.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}