enlightenment: Use 'fabs' to get absolute value of floating point types

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-14 10:28:38 -04:00
parent 2814066c39
commit d72af795ad
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ _mode_screen_find(Ecore_X_Window root, E_Randr2_Screen *s, Ecore_X_Randr_Output
diff =
(100 * abs(s->config.mode.w - minfo->width)) +
(100 * abs(s->config.mode.h - minfo->height)) +
abs((100 * s->config.mode.refresh) - (100 * refresh));
fabs((100 * s->config.mode.refresh) - (100 * refresh));
if (diff < distance)
{
mode = modes[i];