From a5f0e2ecdfd5446b75758b1eb7f2d2767afd6f3d Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Wed, 13 Jun 2018 13:42:59 -0400 Subject: [PATCH] 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 --- src/lib/evas/canvas/evas_object_image.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index 54d2fd50e4..2d217e3ad7 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -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;