elm_photocam: Limiting image reload in zoom in/out

Summary:
Reloading image in zoom in/out only if its previous orientation was changed
@fix
Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: jpeg, raster, cedric

Differential Revision: https://phab.enlightenment.org/D2402
This commit is contained in:
kabeer khan 2015-04-22 17:05:51 +09:00 committed by Carsten Haitzler (Rasterman)
parent 20924ad2e3
commit c5a2af4fe4
1 changed files with 5 additions and 2 deletions

View File

@ -1301,8 +1301,11 @@ _elm_photocam_image_orient_set(Eo *obj, Elm_Photocam_Data *sd, Evas_Image_Orient
Eina_List *l;
Elm_Phocam_Grid *g, *g_orient = NULL;
if (sd->orient == orient) return;
if (sd->orient == orient)
{
sd->orientation_changed = EINA_FALSE;
return;
}
sd->orientation_changed = EINA_TRUE;
sd->orient = orient;
g = _grid_create(obj);