From 7dbd06c8ca19f216c67ee7c84f9fca415f4e186d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 26 Jun 2008 16:44:04 +0200 Subject: [PATCH] draw: markup bg image do not change the size Signed-off-by: Julien Danjou --- common/draw.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/draw.c b/common/draw.c index 70349580d..b28fa81ec 100644 --- a/common/draw.c +++ b/common/draw.c @@ -1040,12 +1040,6 @@ draw_text_extents(xcb_connection_t *conn, int phys_screen, font_t *font, geom.width = ext.width; geom.height = ext.height * 1.5; - if(parser_data->bg_image) - { - geom.width = MAX(geom.width, parser_data->bg_image->width); - geom.height = MAX(geom.height, parser_data->bg_image->height); - } - return geom; }