From aad2438882943b23a72cee28c1b71d217883ebf9 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 5 Jan 2011 12:12:23 +0100 Subject: fixed outlines for larger font sizes --- src/engine/client/text.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index daf5cdb0..828aa3fd 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -354,8 +354,11 @@ class CTextRender : public IEngineTextRender } else { - Grow(ms_aGlyphData, ms_aGlyphDataOutlined, SlotW, SlotH); - Grow(ms_aGlyphDataOutlined, ms_aGlyphData, SlotW, SlotH); + for(int i = OutlineThickness; i > 0; i-=2) + { + Grow(ms_aGlyphData, ms_aGlyphDataOutlined, SlotW, SlotH); + Grow(ms_aGlyphDataOutlined, ms_aGlyphData, SlotW, SlotH); + } UploadGlyph(pSizeData, 1, SlotId, Chr, ms_aGlyphData); } -- cgit 1.4.1