draw: fix shadow stroke

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Kanru Chen 2008-07-09 15:23:47 +02:00 committed by Julien Danjou
parent f364dc07e2
commit f22acbf45e
1 changed files with 2 additions and 2 deletions

View File

@ -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);