From 00b119c1ac8ad93eae65602beea3728aa690d12d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 23 Jun 2008 12:44:01 +0200 Subject: [PATCH] draw: remove draw_get_image_size() Signed-off-by: Julien Danjou --- common/draw.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/common/draw.c b/common/draw.c index 597600fd..2c514669 100644 --- a/common/draw.c +++ b/common/draw.c @@ -917,31 +917,6 @@ draw_image(draw_context_t *ctx, int x, int y, int wanted_h, draw_image_t *image) draw_image_from_argb_data(ctx, x, y, image->width, image->height, wanted_h, image->data); } -/** Get an image size - * \param filename file name - * \return area_t structure with width and height set to image size - */ -area_t -draw_get_image_size(const char *filename) -{ - area_t size = { 0, 0, 0, 0 }; - Imlib_Image image; - Imlib_Load_Error e = IMLIB_LOAD_ERROR_NONE; - - if((image = imlib_load_image_with_error_return(filename, &e))) - { - imlib_context_set_image(image); - - size.width = imlib_image_get_width(); - size.height = imlib_image_get_height(); - - imlib_free_image(); - } - else - warn("cannot load image %s: %s", filename, draw_imlib_load_strerror(e)); - - return size; -} #endif /* WITH_IMLIB2 */ /** Rotate a pixmap.