draw: fix shadow stroke
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f364dc07e2
commit
f22acbf45e
|
@ -414,8 +414,8 @@ draw_text(draw_context_t *ctx, font_t *font,
|
||||||
pdata->shadow.color.blue / 65535.0,
|
pdata->shadow.color.blue / 65535.0,
|
||||||
pdata->shadow.color.alpha / 65535.0);
|
pdata->shadow.color.alpha / 65535.0);
|
||||||
cairo_move_to(ctx->cr, x + pdata->shadow.offset, y + pdata->shadow.offset);
|
cairo_move_to(ctx->cr, x + pdata->shadow.offset, y + pdata->shadow.offset);
|
||||||
pango_cairo_update_layout(ctx->cr, ctx->layout);
|
pango_cairo_layout_path(ctx->cr, ctx->layout);
|
||||||
pango_cairo_show_layout(ctx->cr, ctx->layout);
|
cairo_stroke(ctx->cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_move_to(ctx->cr, x, y);
|
cairo_move_to(ctx->cr, x, y);
|
||||||
|
|
Loading…
Reference in New Issue