draw: remove useless draw_get_image_size()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
64c4202519
commit
114a97ee87
|
@ -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 *
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Reference in New Issue