summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-11 19:10:28 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-11 19:10:28 +0100
commitf728c5838338255d799a71fd449ee7ad22fdf7d0 (patch)
tree4cbfd4ffe5f7e19c935120cbeebfd25631c7440f /src/render
parentfix explosion jet (diff)
parentfuck (diff)
downloadre3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar.gz
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar.bz2
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar.lz
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar.xz
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.tar.zst
re3-f728c5838338255d799a71fd449ee7ad22fdf7d0.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Font.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp
index 04b1e074..6d569591 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -432,7 +432,7 @@ CFont::PrintChar(float x, float y, wchar c)
bDontPrint = c == '\0';
float w = GetCharacterWidth(c) / 32.0f;
- if (RenderState.bFontHalfTexture && c == 208)
+ if (Details.bFontHalfTexture && c == 208)
c = '\0';
float xoff = c % 16;
float yoff = c / 16;
@@ -1051,10 +1051,10 @@ CFont::GetCharacterWidth(wchar c)
return Size[LanguageSet][Details.style][192];
#else
- if (Details.proportional)
- return Size[Details.style][c];
+ if (RenderState.proportional)
+ return Size[RenderState.style][c];
else
- return Size[Details.style][209];
+ return Size[RenderState.style][209];
#endif // MORE_LANGUAGES
}