CProgressBarCache: fix compiler warnings wconversion

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9c85491974
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-13 (Tue, 13 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2015-01-13 16:14:26 +01:00
parent 4a621efb66
commit 715aa9d9d7

View File

@@ -379,9 +379,9 @@ void CProgressBarCache::applyGradient(fb_pixel_t *b)
if (v != last_old) { if (v != last_old) {
last_old = v; last_old = v;
double s = sin((y + .5) * M_PI / pb_height) * .8 + .2; double s = sin((y + .5) * M_PI / pb_height) * .8 + .2;
float fr = ((last_old >> 16) & 0xff) * s + 0.5; float fr = float(((last_old >> 16) & 0xff) * s + 0.5);
float fg = ((last_old >> 8) & 0xff) * s + 0.5; float fg = float(((last_old >> 8) & 0xff) * s + 0.5);
float fb = ((last_old ) & 0xff) * s + 0.5; float fb = float(((last_old ) & 0xff) * s + 0.5);
last_new = (last_old & 0xFF000000) last_new = (last_old & 0xFF000000)
| ((unsigned int)fr << 16) | ((unsigned int)fr << 16)
| ((unsigned int)fg << 8) | ((unsigned int)fg << 8)