From: Dana Jansens Date: Wed, 4 Jun 2003 22:24:11 +0000 (+0000) Subject: layout better with shadows X-Git-Tag: gl-oldtheme~42 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=0d35d620f0e520d0b8d0b4562e8457e417395876;p=dana%2Fopenbox.git layout better with shadows --- 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,