From ef1977330b46d946c1a036dd23e901384cb7ec33 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 5 Jan 2019 21:10:14 +0200 Subject: [PATCH] Fixed: Glyph size step not taken into account. --HG-- branch : develop --- code/nel/src/3d/texture_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/3d/texture_font.cpp b/code/nel/src/3d/texture_font.cpp index 5977a8e5a..b40083516 100644 --- a/code/nel/src/3d/texture_font.cpp +++ b/code/nel/src/3d/texture_font.cpp @@ -446,7 +446,7 @@ CTextureFont::SGlyphInfo* CTextureFont::findLetterGlyph(SLetterInfo *letter, boo uint bitmapFontSize = max((sint)_MinGlyphSize, min((sint)_MaxGlyphSize, letter->Size)); if (_GlyphSizeStep > 1 && bitmapFontSize > _GlyphSizeStepMin) { - uint size = (bitmapFontSize / _GlyphSizeStep) * _GlyphSizeStep; + bitmapFontSize = (bitmapFontSize / _GlyphSizeStep) * _GlyphSizeStep; } // CacheVersion not checked, all glyphs in cache must be rendered on texture