summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-08 09:30:09 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-08 09:30:09 +0200
commit0afb1d9e2412d8658140c559e16326714ee95a7a (patch)
treea1a059b53f55eda29207ca18f22208a7feefb55d /src/render
parentsome fixes to heli AI (not all yet) (diff)
downloadre3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar.gz
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar.bz2
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar.lz
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar.xz
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.tar.zst
re3-0afb1d9e2412d8658140c559e16326714ee95a7a.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Font.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp
index 961dc20d..2c2f2115 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -818,13 +818,13 @@ CFont::PrintString(float x, float y, uint32, wchar *start, wchar *end, float spw
Details.dropShadowPosition = 0;
Details.bIsShadow = true;
if (Details.slant != 0.0f) {
- Details.slantRefX += dropShadowPosition;
- Details.slantRefY += dropShadowPosition;
- PrintString(dropShadowPosition + x, dropShadowPosition + y, Details.anonymous_25, start, end, spwidth);
- Details.slantRefX -= dropShadowPosition;
- Details.slantRefY -= dropShadowPosition;
+ Details.slantRefX += SCREEN_SCALE_X(dropShadowPosition);
+ Details.slantRefY += SCREEN_SCALE_Y(dropShadowPosition);
+ PrintString(SCREEN_SCALE_X(dropShadowPosition) + x, SCREEN_SCALE_Y(dropShadowPosition) + y, Details.anonymous_25, start, end, spwidth);
+ Details.slantRefX -= SCREEN_SCALE_X(dropShadowPosition);
+ Details.slantRefY -= SCREEN_SCALE_Y(dropShadowPosition);
} else {
- PrintString(dropShadowPosition + x, dropShadowPosition + y, Details.anonymous_25, start, end, spwidth);
+ PrintString(SCREEN_SCALE_X(dropShadowPosition) + x, SCREEN_SCALE_Y(dropShadowPosition) + y, Details.anonymous_25, start, end, spwidth);
}
Details.color = color;
Details.dropShadowPosition = dropShadowPosition;