From dd9cb9810bfbcbd9649b1286b795ead2a10280ed Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 25 Apr 2008 21:16:37 +0200 Subject: [PATCH] [draw] Draw style background in draw text if no bg in markup Signed-off-by: Julien Danjou --- common/draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/draw.c b/common/draw.c index d39be3c54..530f0dc9c 100644 --- a/common/draw.c +++ b/common/draw.c @@ -311,6 +311,8 @@ draw_text(DrawCtx *ctx, draw_rectangle(ctx, area, 1.0, true, *bg_color); p_delete(&bg_color); } + else + draw_rectangle(ctx, area, 1.0, true, style.bg); pango_layout_set_width(ctx->layout, pango_units_from_double(area.width - padding)); pango_layout_set_ellipsize(ctx->layout, PANGO_ELLIPSIZE_END);