remove impossible/unnecessary randr rotation checks
CID 1039944
This commit is contained in:
parent
18cc2222f3
commit
b82ef28332
|
@ -1900,9 +1900,6 @@ _e_smart_monitor_orientation_get(int rotation)
|
|||
else if (((rotation - ROTATE_FUZZ) <= 270) ||
|
||||
((rotation + ROTATE_FUZZ) <= 270))
|
||||
return ECORE_X_RANDR_ORIENTATION_ROT_270;
|
||||
else if (((rotation - ROTATE_FUZZ) < 360) ||
|
||||
((rotation + ROTATE_FUZZ) < 360))
|
||||
return ECORE_X_RANDR_ORIENTATION_ROT_0;
|
||||
|
||||
/* return a default */
|
||||
return ECORE_X_RANDR_ORIENTATION_ROT_0;
|
||||
|
|
Loading…
Reference in New Issue