forked from enlightenment/efl
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:
parent
cd376bbe5f
commit
a5f0e2ecdf
|
@ -938,16 +938,6 @@ _efl_canvas_image_internal_efl_file_save(const Eo *eo_obj, Evas_Image_Data *o, c
|
||||||
data = (DATA32 *)sl.mem;
|
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)
|
if (!data)
|
||||||
{
|
{
|
||||||
int stride;
|
int stride;
|
||||||
|
|
Loading…
Reference in New Issue