draw: honor bg_resize

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-26 16:46:25 +02:00
parent 7dbd06c8ca
commit 0012b8dfc0
1 changed files with 1 additions and 1 deletions

View File

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