evas: Remove unnecessary rotation when saving

Summary:
At some point this code stopped being necessary. The image data is already
rotated and width and height match it, so no need to rotate it again
(which produced warnings and incorrect behaviour)

Fixes T5841

Test Plan: This fixed examples/evas_images{2,4,5} which were failing before.

Reviewers: bu5hm4n, zmike, devilhorns

Reviewed By: zmike

Subscribers: cedric, #committers

Tags: #efl

Maniphest Tasks: T5841

Differential Revision: https://phab.enlightenment.org/D6259
This commit is contained in:
Xavi Artigas 2018-06-13 13:42:59 -04:00 committed by Chris Michael
parent cd376bbe5f
commit a5f0e2ecdf
1 changed files with 0 additions and 10 deletions

View File

@ -938,16 +938,6 @@ _efl_canvas_image_internal_efl_file_save(const Eo *eo_obj, Evas_Image_Data *o, c
data = (DATA32 *)sl.mem;
}
if ((o->cur->orient == EVAS_IMAGE_ORIENT_90) ||
(o->cur->orient == EVAS_IMAGE_ORIENT_270) ||
(o->cur->orient == EVAS_IMAGE_FLIP_TRANSPOSE) ||
(o->cur->orient == EVAS_IMAGE_FLIP_TRANSVERSE))
{
int tmp = imagew;
imagew = imageh;
imageh = tmp;
}
if (!data)
{
int stride;