raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=da88dd1128a091a303b6511f190f4af3d3785c23

commit da88dd1128a091a303b6511f190f4af3d3785c23
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Feb 16 13:11:46 2020 +0000

    scale - dont use nan as unsed but < 0.0 because this messes up
    
    i found that the isnan messes up... and even tho it's nan it says its
    not thus forcing tmp to be on all the time. using < 0 will be more
    reliable for sure as scaling valuses <= 0 are just "invalid" anyway.
---
 src/bin/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 0b4f4c2..c6dd7a3 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -803,7 +803,7 @@ elm_main(int argc, char **argv)
    Eina_Bool single = EINA_FALSE;
    Eina_Bool no_wizard = EINA_FALSE;
    Eina_Bool cmd_options = EINA_FALSE;
-   double scale = NAN; /* unset */
+   double scale = -1.0; /* unset */
    Ipc_Instance instance = {
         .login_shell = 0xff, /* unset */
         .active_links = 0xff, /* unset */
@@ -915,7 +915,7 @@ elm_main(int argc, char **argv)
         goto end;
      }
 
-   if (!isnan(scale))
+   if (scale > 0.0)
      {
         elm_config_scale_set(scale);
         elm_config_all_flush();

-- 


Reply via email to