netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=5d091eb8cd7ff7455eb90236570294f820458743

commit 5d091eb8cd7ff7455eb90236570294f820458743
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Sep 8 22:24:23 2020 +0100

    ui_cpu: overlay make it respond better....
    
    colors a bit off but it's visible...
---
 src/bin/ui/ui_cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c
index d82809c..846ca2e 100644
--- a/src/bin/ui/ui_cpu.c
+++ b/src/bin/ui/ui_cpu.c
@@ -112,8 +112,8 @@ _core_alpha(int percent, int fr, int fr_max, int fr_min)
         n = fr - fr_min;
         double fade = (100.0 - ((n * 100) / rng)) / 100.0;
 
-        r += (percent / 100.0) * 0xff;
-        b += fade * 0xff;
+        r = (percent / 100.0) * 0xff;
+        b = fade * 0xff;
         RGB_VALID(r);
         RGB_VALID(b);
      }

-- 


Reply via email to