From f22acbf45ecf956d8585ed1dbd2f94e6a1673613 Mon Sep 17 00:00:00 2001 From: Kanru Chen Date: Wed, 9 Jul 2008 15:23:47 +0200 Subject: [PATCH] draw: fix shadow stroke Signed-off-by: Julien Danjou --- common/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/draw.c b/common/draw.c index 27694fb7..2f5d7546 100644 --- a/common/draw.c +++ b/common/draw.c @@ -414,8 +414,8 @@ draw_text(draw_context_t *ctx, font_t *font, pdata->shadow.color.blue / 65535.0, pdata->shadow.color.alpha / 65535.0); cairo_move_to(ctx->cr, x + pdata->shadow.offset, y + pdata->shadow.offset); - pango_cairo_update_layout(ctx->cr, ctx->layout); - pango_cairo_show_layout(ctx->cr, ctx->layout); + pango_cairo_layout_path(ctx->cr, ctx->layout); + cairo_stroke(ctx->cr); } cairo_move_to(ctx->cr, x, y);