This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 01320e9fa7eeb4001c80ce1319c260d280fdd5a2
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Wed Jan 8 10:57:07 2025 +0000

    cpufreq - polish - disable smooth scale if too blurry
---
 src/modules/cpufreq/e_mod_main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/modules/cpufreq/e_mod_main.c b/src/modules/cpufreq/e_mod_main.c
index a75177ff7..6e1e440e9 100644
--- a/src/modules/cpufreq/e_mod_main.c
+++ b/src/modules/cpufreq/e_mod_main.c
@@ -93,7 +93,13 @@ _cb_cpf_render(void *data)
           o = inst->o_gadimg;
           if (o)
             {
-              evas_object_image_smooth_scale_set(o, EINA_TRUE);
+              Evas_Coord gh = 0;
+              Eina_Bool smooth = EINA_TRUE;
+
+              evas_object_geometry_get(o, NULL, NULL, NULL, &gh);
+              if ((r->real_h > 0) && ((gh / r->real_h) >= 2))
+                smooth = EINA_FALSE;
+              evas_object_image_smooth_scale_set(o, smooth);
               evas_object_image_size_set(o, r->real_w, r->real_h);
               pix = evas_object_image_data_get(o, EINA_TRUE);
               if (pix)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to