enlightenment: Use 'fabs' to compute absolute value of floating point
authorChris Michael <cp.michael@samsung.com>
Wed, 14 Oct 2015 14:38:14 +0000 (10:38 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 14 Oct 2015 14:38:14 +0000 (10:38 -0400)
types

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/wl_drm/e_mod_main.c

index d6d8c79..7a9f6aa 100644 (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;