enlightenment: Use 'fabs' to compute 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:38:14 -04:00
parent e856f7acbb
commit 2cd6fcc3a9
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ _e_mod_drm_mode_screen_find(E_Randr2_Screen *s, Ecore_Drm_Output *output)
{
diff = (100 * abs(s->config.mode.w - mode->width)) +
(100 * abs(s->config.mode.h - mode->height)) +
abs((100 * s->config.mode.refresh) - (100 * mode->refresh));
fabs((100 * s->config.mode.refresh) - (100 * mode->refresh));
if (diff < distance)
{
m = mode;