rotation: should compare the angle between current and next whether or not it's diffe... 29/81129/2 accepted/tizen/common/20160722.135107 accepted/tizen/ivi/20160722.084726 accepted/tizen/mobile/20160722.084631 accepted/tizen/tv/20160722.084650 accepted/tizen/wearable/20160722.084709 submit/tizen/20160722.082010
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 22 Jul 2016 07:52:09 +0000 (16:52 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 22 Jul 2016 08:18:21 +0000 (01:18 -0700)
Change-Id: I674471dd4feabe2c10cc89e23c4b52061f586932

src/rotation/e_mod_rotation_wl.c

index 26e21b2..62cb63c 100644 (file)
@@ -1135,7 +1135,8 @@ e_zone_rotation_block_set(E_Zone *zone, const char *name_hint, Eina_Bool set)
      {
         zone->rot.block_count = 0;
 
-        if (zone->rot.pending)
+        if ((zone->rot.pending) &&
+            (zone->rot.curr != zone->rot.next))
           {
              zone->rot.prev = zone->rot.curr;
              zone->rot.curr = zone->rot.next;
@@ -1181,7 +1182,8 @@ e_zone_rotation_update_done(E_Zone *zone)
 
    zone->rot.wait_for_done = EINA_FALSE;
    if ((zone->rot.pending) &&
-       (zone->rot.block_count == 0))
+       (zone->rot.block_count == 0) &&
+       (zone->rot.curr != zone->rot.next))
      {
         zone->rot.prev = zone->rot.curr;
         zone->rot.curr = zone->rot.next;