aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkabeer khan <kabeer.khan@samsung.com>2015-03-25 19:25:38 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-25 19:40:41 +0100
commit6bd9255191e054fc0442befecd4198bb99e5ea73 (patch)
tree3def6f1d04a61ee590fc1a8b60619dc4f32de9e0
parenteet: fix variable naming (diff)
downloadefl-6bd9255191e054fc0442befecd4198bb99e5ea73.tar.gz
evas: fix logic of 180 degree image rotation in software_generic backend.
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2238 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index dc4d7b334f..a679d5c767 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1360,17 +1360,16 @@ _image_rotate_180(void *data, Image_Entry *im)
{
unsigned int *p1, *p2, tmp;
DATA32 *image_data;
- int x, hw, iw, ih;
+ int hw, iw, ih;
Image_Entry *im2;
eng_image_size_get(data, im, &iw, &ih);
im = eng_image_data_get(data, im , 1, &image_data, NULL);
if(!image_data) return im;
hw = iw * ih;
- x = (hw / 2);
p1 = image_data;
p2 = image_data + hw - 1;
- for (; --x > 0; )
+ for (; p1 < p2; )
{
tmp = *p1;
*p1 = *p2;