From 6d1126be3c25d56020cb9890e659548dbb85efda Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 19 Nov 2012 11:56:54 +0000 Subject: [PATCH] elementary/win, conform - dont accept negative degree. SVN revision: 79442 --- legacy/elementary/src/lib/elm_conform.c | 2 +- legacy/elementary/src/lib/elm_win.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_conform.c b/legacy/elementary/src/lib/elm_conform.c index 32fba09c36..b9dc462049 100644 --- a/legacy/elementary/src/lib/elm_conform.c +++ b/legacy/elementary/src/lib/elm_conform.c @@ -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); diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index 931e56f044..eb81df8871 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -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);