image: load image without cache (FS#651)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1c54d2fd12
commit
2dadce9bdb
5
image.c
5
image.c
|
@ -277,15 +277,14 @@ static int
|
||||||
image_new_from_file(const char *filename)
|
image_new_from_file(const char *filename)
|
||||||
{
|
{
|
||||||
Imlib_Image imimage;
|
Imlib_Image imimage;
|
||||||
Imlib_Load_Error e = IMLIB_LOAD_ERROR_NONE;
|
|
||||||
image_t *image;
|
image_t *image;
|
||||||
|
|
||||||
if(!filename)
|
if(!filename)
|
||||||
return 0;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue