draw: remove useless draw_get_image_size()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-17 09:26:30 +02:00
parent 64c4202519
commit 114a97ee87
2 changed files with 0 additions and 22 deletions

View file

@ -789,27 +789,6 @@ draw_image(draw_context_t *ctx, int x, int y, int wanted_h, draw_image_t *image)
cairo_destroy(cr);
}
/** 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 = { -1, -1, -1, -1, NULL, NULL };
gint width, height;
if(gdk_pixbuf_get_file_info(filename, &width, &height))
{
size.width = width;
size.height = height;
}
else
warn("cannot load image %s: %s", filename, "format unrecognized");
return size;
}
#else /* WITH_IMLIB2 */
static const char *

View file

@ -166,7 +166,6 @@ draw_image_t *draw_image_new(const char *);
void draw_image_delete(draw_image_t **);
void draw_image(draw_context_t *, int, int, int, draw_image_t *);
void draw_image_from_argb_data(draw_context_t *, int, int, int, int, int, unsigned char *);
area_t draw_get_image_size(const char *filename);
void draw_rotate(draw_context_t *, xcb_drawable_t, xcb_drawable_t, int, int, int, int, double, int, int);
area_t draw_text_extents(xcb_connection_t *, int, font_t *, const char *);
alignment_t draw_align_get_from_str(const char *);