From 585300cd335abe6cc13519daaab3ed30266b02a5 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sun, 10 Jan 2021 22:37:11 +0200 Subject: [PATCH] More font fix --- src/render/Font.cpp | 8 ++++---- 1 file 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 }