elementary/win, conform - dont accept negative degree.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 19 Nov 2012 11:56:54 +0000 (11:56 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 19 Nov 2012 11:56:54 +0000 (11:56 +0000)
SVN revision: 79442

src/lib/elm_conform.c
src/lib/elm_win.c

index 32fba09..b9dc462 100644 (file)
@@ -487,7 +487,7 @@ _on_rotation_changed(void *data,
    if (!old_indi) return;
    evas_object_hide(old_indi);
 
-   if ((rot == 90) || (rot == 270) || (rot == -90) || (rot == -270))
+   if ((rot == 90) || (rot == 270))
      {
         if (!sd->landscape_indicator)
           sd->landscape_indicator = _create_landscape_indicator(conformant);
index 931e56f..eb81df8 100644 (file)
@@ -3434,6 +3434,7 @@ elm_win_rotation_set(Evas_Object *obj,
    ELM_WIN_CHECK(obj);
    ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
 
+   if (rotation < 0) rotation = -rotation;
    if (sd->rot == rotation) return;
    sd->rot = rotation;
    TRAP(sd, rotation_set, rotation);