diff options
| author | oy <Tom_Adams@web.de> | 2011-01-05 12:12:23 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-05 12:12:23 +0100 |
| commit | aad2438882943b23a72cee28c1b71d217883ebf9 (patch) | |
| tree | 6be79022dfb8a1a4c9aad8e3ce34a491c8dcf8f0 /src/engine | |
| parent | 023763e1a484e66285b3004cf30cecf5e75224b9 (diff) | |
| download | zcatch-aad2438882943b23a72cee28c1b71d217883ebf9.tar.gz zcatch-aad2438882943b23a72cee28c1b71d217883ebf9.zip | |
fixed outlines for larger font sizes
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/client/text.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); } |