elm image - fix image rotation in non-common cases

this fixes d6f4040d0c62c220f2339d2a57126fde43e85e19 for the non-common
path that normalizes then applies new orientation

@fix
This commit is contained in:
Carsten Haitzler 2015-01-13 08:53:14 +09:00
parent 0da7ee96fc
commit a89f3d267c
1 changed files with 4 additions and 2 deletions

View File

@ -1280,13 +1280,15 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, Elm_Image_Orient orient)
case ELM_IMAGE_ORIENT_0:
break;
case ELM_IMAGE_ORIENT_90:
_elm_image_smart_rotate_270(sd);
if (i == 0) _elm_image_smart_rotate_270(sd);
else _elm_image_smart_rotate_90(sd);
break;
case ELM_IMAGE_ORIENT_180:
_elm_image_smart_rotate_180(sd);
break;
case ELM_IMAGE_ORIENT_270:
_elm_image_smart_rotate_90(sd);
if (i == 0) _elm_image_smart_rotate_90(sd);
else _elm_image_smart_rotate_270(sd);
break;
case ELM_IMAGE_FLIP_HORIZONTAL:
_elm_image_flip_horizontal(sd);