[draw] Tell pango about padding

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-25 18:53:24 +02:00
parent 02c31eae05
commit d3190fcf63
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ draw_text(DrawCtx *ctx,
p_delete(&bg_color);
}
pango_layout_set_width(ctx->layout, pango_units_from_double(area.width));
pango_layout_set_width(ctx->layout, pango_units_from_double(area.width - padding));
pango_layout_set_ellipsize(ctx->layout, PANGO_ELLIPSIZE_END);
pango_layout_set_markup(ctx->layout, buf, len);
pango_layout_set_font_description(ctx->layout, style.font->desc);