about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-05 12:12:23 +0100
committeroy <Tom_Adams@web.de>2011-01-05 12:12:23 +0100
commitaad2438882943b23a72cee28c1b71d217883ebf9 (patch)
tree6be79022dfb8a1a4c9aad8e3ce34a491c8dcf8f0 /src/engine
parent023763e1a484e66285b3004cf30cecf5e75224b9 (diff)
downloadzcatch-aad2438882943b23a72cee28c1b71d217883ebf9.tar.gz
zcatch-aad2438882943b23a72cee28c1b71d217883ebf9.zip
fixed outlines for larger font sizes
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/text.cpp7
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);
 		}