Fixed issue #28
This commit is contained in:
parent
5034792948
commit
92b2779b00
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION = git-20111105
|
VERSION = git-20111111
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -ansi -Wall -pedantic -O2
|
CFLAGS = -ansi -Wall -pedantic -O2
|
||||||
|
6
image.c
6
image.c
@ -311,10 +311,7 @@ bool img_load(img_t *img, const fileinfo_t *file) {
|
|||||||
imlib_image_set_changes_on_disk();
|
imlib_image_set_changes_on_disk();
|
||||||
imlib_context_set_anti_alias(img->aa);
|
imlib_context_set_anti_alias(img->aa);
|
||||||
|
|
||||||
fmt = imlib_image_format();
|
if ((fmt = imlib_image_format()) != NULL) {
|
||||||
/* avoid unused-but-set-variable warning */
|
|
||||||
(void) fmt;
|
|
||||||
|
|
||||||
#if EXIF_SUPPORT
|
#if EXIF_SUPPORT
|
||||||
if (STREQ(fmt, "jpeg"))
|
if (STREQ(fmt, "jpeg"))
|
||||||
exif_auto_orientate(file);
|
exif_auto_orientate(file);
|
||||||
@ -323,6 +320,7 @@ bool img_load(img_t *img, const fileinfo_t *file) {
|
|||||||
if (STREQ(fmt, "gif"))
|
if (STREQ(fmt, "gif"))
|
||||||
img_load_gif(img, file);
|
img_load_gif(img, file);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
img->w = imlib_image_get_width();
|
img->w = imlib_image_get_width();
|
||||||
img->h = imlib_image_get_height();
|
img->h = imlib_image_get_height();
|
||||||
|
Loading…
Reference in New Issue
Block a user