summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-10-30 10:40:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-10-30 10:40:37 +0100
commitf850bc191dbac45cdd3f39548b65a0f0e390bbb8 (patch)
treed2cd40aabfffc49817ac86e4f5740bec0d8a0bc2 /src/imlib.c
parent47fb669dffb880c818de1346807aee5e2f999fc9 (diff)
imlib.c: Move orientation logic inside HAVE_LIBEXIF
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imlib.c b/src/imlib.c
index fd78d0c..193f5f8 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -258,8 +258,8 @@ int feh_load_image(Imlib_Image * im, feh_file * file)
return(0);
}
- int orientation = 0;
#ifdef HAVE_LIBEXIF
+ int orientation = 0;
ExifData *exifData = exif_data_new_from_file(file->filename);
if (exifData) {
ExifByteOrder byteOrder = exif_data_get_byte_order(exifData);
@@ -268,7 +268,6 @@ int feh_load_image(Imlib_Image * im, feh_file * file)
orientation = exif_get_short(exifEntry->data, byteOrder);
}
file->ed = exifData;
-#endif
if (orientation == 3)
gib_imlib_image_orientate(*im, 2);
@@ -276,6 +275,7 @@ int feh_load_image(Imlib_Image * im, feh_file * file)
gib_imlib_image_orientate(*im, 1);
else if (orientation == 8)
gib_imlib_image_orientate(*im, 3);
+#endif
D(("Loaded ok\n"));
return(1);