forked from enlightenment/efl
elementary/win - more reasonable exception handling
Thanks GArik__ for reporting SVN revision: 79508
This commit is contained in:
parent
dddfb6585a
commit
eacbb4bc33
|
@ -3463,7 +3463,12 @@ 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 ((rotation > 360) || (rotation < 0))
|
||||
{
|
||||
WRN("Rotation degree should be 0 ~ 360");
|
||||
if (rotation > 360) rotation %= 360;
|
||||
if (rotation < 0) rotation += 360;
|
||||
}
|
||||
if (sd->rot == rotation) return;
|
||||
sd->rot = rotation;
|
||||
TRAP(sd, rotation_set, rotation);
|
||||
|
|
Loading…
Reference in New Issue