forked from enlightenment/efl
elementary/win, conform - dont accept negative degree.
SVN revision: 79442
This commit is contained in:
parent
2d776b49bb
commit
6d1126be3c
|
@ -487,7 +487,7 @@ _on_rotation_changed(void *data,
|
||||||
if (!old_indi) return;
|
if (!old_indi) return;
|
||||||
evas_object_hide(old_indi);
|
evas_object_hide(old_indi);
|
||||||
|
|
||||||
if ((rot == 90) || (rot == 270) || (rot == -90) || (rot == -270))
|
if ((rot == 90) || (rot == 270))
|
||||||
{
|
{
|
||||||
if (!sd->landscape_indicator)
|
if (!sd->landscape_indicator)
|
||||||
sd->landscape_indicator = _create_landscape_indicator(conformant);
|
sd->landscape_indicator = _create_landscape_indicator(conformant);
|
||||||
|
|
|
@ -3434,6 +3434,7 @@ elm_win_rotation_set(Evas_Object *obj,
|
||||||
ELM_WIN_CHECK(obj);
|
ELM_WIN_CHECK(obj);
|
||||||
ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
|
ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
|
||||||
|
|
||||||
|
if (rotation < 0) rotation = -rotation;
|
||||||
if (sd->rot == rotation) return;
|
if (sd->rot == rotation) return;
|
||||||
sd->rot = rotation;
|
sd->rot = rotation;
|
||||||
TRAP(sd, rotation_set, rotation);
|
TRAP(sd, rotation_set, rotation);
|
||||||
|
|
Loading…
Reference in New Issue