ui_cpu: overlay make it respond better....

colors a bit off but it's visible...
This commit is contained in:
Alastair Poole 2020-09-08 22:24:23 +01:00
parent f4ccc999c0
commit 5d091eb8cd
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}