discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0cf20e5407be84cc3204f021a35aaf42b3176d95

commit 0cf20e5407be84cc3204f021a35aaf42b3176d95
Author: Mike Blumenkrantz <[email protected]>
Date:   Sun Sep 7 23:02:38 2014 -0400

    fix e_randr double comparison warnings
---
 src/bin/e_randr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index ab938d9..b7aa801 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -262,7 +262,7 @@ _e_randr_config_load(void)
 
              /* Set refresh_rate to 60 */
              EINA_LIST_FOREACH(e_randr_cfg->outputs, l, output)
-                if (output->refresh_rate == 0) output->refresh_rate = 60.0;
+                if (dblequal(output->refresh_rate, 0.0)) output->refresh_rate 
= 60.0;
           }
      }
 
@@ -820,7 +820,7 @@ _e_randr_output_mode_update(E_Randr_Output *output)
              rate = e_randr_mode_refresh_rate_get(mode_infos[i]);
              if ((mode_infos[i]->width == (unsigned int)output->cfg->geo.w) &&
                  (mode_infos[i]->height == (unsigned int)output->cfg->geo.h) &&
-                 (rate == output->cfg->refresh_rate) &&
+                 (dblequal(rate, output->cfg->refresh_rate)) &&
                  (_e_randr_output_mode_valid(mode_infos[i]->xid, modes, 
nmodes)))
                {
                   output->mode = mode_infos[i]->xid;

-- 


Reply via email to