From 2dadce9bdb214415a0335641c08ad6d5dc841c2e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 7 Oct 2009 19:54:00 +0200 Subject: [PATCH] image: load image without cache (FS#651) Signed-off-by: Julien Danjou --- image.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/image.c b/image.c index 42f65d78..d4d8c608 100644 --- a/image.c +++ b/image.c @@ -277,15 +277,14 @@ static int image_new_from_file(const char *filename) { Imlib_Image imimage; - Imlib_Load_Error e = IMLIB_LOAD_ERROR_NONE; image_t *image; if(!filename) return 0; - if(!(imimage = imlib_load_image_with_error_return(filename, &e))) + if(!(imimage = imlib_load_image_without_cache(filename))) { - warn("cannot load image %s: %s", filename, image_imlib_load_strerror(e)); + warn("cannot load image %s", filename); return 0; }