From 0012b8dfc050d6f954cff6c91e44463c1ac8546e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 26 Jun 2008 16:46:25 +0200 Subject: [PATCH] draw: honor bg_resize Signed-off-by: Julien Danjou --- common/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/draw.c b/common/draw.c index b28fa81ec..1a430367a 100644 --- a/common/draw.c +++ b/common/draw.c @@ -354,7 +354,7 @@ draw_text(draw_context_t *ctx, font_t *font, default: break; } - draw_image(ctx, x, y, area.height, pdata->bg_image); + draw_image(ctx, x, y, pdata->bg_resize ? area.height : 0, pdata->bg_image); draw_image_delete(&pdata->bg_image); }