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>
This commit is contained in:
kabeer khan 2015-03-25 19:25:38 +01:00 committed by Cedric BAIL
parent 72dae98be8
commit 6bd9255191
1 changed files with 2 additions and 3 deletions

View File

@ -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;