elementary/win - Dont be allow under -320 to be passed thorough.

babieri, you still read the commits!

Anyway thanks for reporting.



SVN revision: 79510
This commit is contained in:
ChunEon Park 2012-11-21 12:50:17 +00:00
parent d5e5c03b69
commit 977adcb127
1 changed files with 2 additions and 2 deletions

View File

@ -3462,8 +3462,8 @@ _win_rotation_degree_check(int rotation)
{
if ((rotation > 360) || (rotation < 0))
{
WRN("Rotation degree should be 0 ~ 360");
if (rotation > 360) rotation %= 360;
WRN("Rotation degree should be 0 ~ 360 (passed degree: %d)", rotation);
rotation %= 360;
if (rotation < 0) rotation += 360;
}
return rotation;