From 0d35d620f0e520d0b8d0b4562e8457e417395876 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Jun 2003 22:24:11 +0000 Subject: [PATCH] layout better with shadows --- glft/render.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glft/render.c b/glft/render.c index d57a7e74..3f85a89d 100644 --- a/glft/render.c +++ b/glft/render.c @@ -99,7 +99,6 @@ void GlftRenderString(struct GlftFont *font, const char *str, int bytes, return; } - drawstring(font, str, bytes, color, x, y); if (font->shadow && font->shadow_alpha != 0) { struct GlftColor c; if (font->shadow_alpha > 0) { @@ -110,8 +109,10 @@ void GlftRenderString(struct GlftFont *font, const char *str, int bytes, c.a = -font->shadow_alpha; } drawstring(font, str, bytes, &c, - x + font->shadow_offset, y + font->shadow_offset); + x + font->shadow_offset, y); + y += font->shadow_offset; } + drawstring(font, str, bytes, color, x, y); } void GlftMeasureString(struct GlftFont *font, -- 2.34.1