mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed outlines for larger font sizes
This commit is contained in:
parent
023763e1a4
commit
aad2438882
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue