summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-13 08:53:14 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-13 08:53:14 +0900
commitdc30ef6d7ab9b3a657bf718889828561f58c47d1 (patch)
treeb49547b3138d15438379eaa0bea20cb2c4f5e1b8
parent50fb0863fc3ec013e31e58c060dfde855ee2ae72 (diff)
elm image - fix image rotation in non-common cases
this fixes d6f4040d0c62c220f2339d2a57126fde43e85e19 for the non-common path that normalizes then applies new orientation @fix
-rw-r--r--src/lib/elm_image.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index ae8922e80..e57cccb60 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -1280,13 +1280,15 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, Elm_Image_Orient orient)
1280 case ELM_IMAGE_ORIENT_0: 1280 case ELM_IMAGE_ORIENT_0:
1281 break; 1281 break;
1282 case ELM_IMAGE_ORIENT_90: 1282 case ELM_IMAGE_ORIENT_90:
1283 _elm_image_smart_rotate_270(sd); 1283 if (i == 0) _elm_image_smart_rotate_270(sd);
1284 else _elm_image_smart_rotate_90(sd);
1284 break; 1285 break;
1285 case ELM_IMAGE_ORIENT_180: 1286 case ELM_IMAGE_ORIENT_180:
1286 _elm_image_smart_rotate_180(sd); 1287 _elm_image_smart_rotate_180(sd);
1287 break; 1288 break;
1288 case ELM_IMAGE_ORIENT_270: 1289 case ELM_IMAGE_ORIENT_270:
1289 _elm_image_smart_rotate_90(sd); 1290 if (i == 0) _elm_image_smart_rotate_90(sd);
1291 else _elm_image_smart_rotate_270(sd);
1290 break; 1292 break;
1291 case ELM_IMAGE_FLIP_HORIZONTAL: 1293 case ELM_IMAGE_FLIP_HORIZONTAL:
1292 _elm_image_flip_horizontal(sd); 1294 _elm_image_flip_horizontal(sd);