From 9c8549197490c1e8d49349bb6545cd1e88cc60e3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 13 Jan 2015 16:14:26 +0100 Subject: [PATCH] CProgressBarCache: fix compiler warnings wconversion --- src/gui/components/cc_item_progressbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_item_progressbar.cpp b/src/gui/components/cc_item_progressbar.cpp index aa9dbf0fb..4f7453aec 100644 --- a/src/gui/components/cc_item_progressbar.cpp +++ b/src/gui/components/cc_item_progressbar.cpp @@ -379,9 +379,9 @@ void CProgressBarCache::applyGradient(fb_pixel_t *b) if (v != last_old) { last_old = v; double s = sin((y + .5) * M_PI / pb_height) * .8 + .2; - float fr = ((last_old >> 16) & 0xff) * s + 0.5; - float fg = ((last_old >> 8) & 0xff) * s + 0.5; - float fb = ((last_old ) & 0xff) * s + 0.5; + float fr = float(((last_old >> 16) & 0xff) * s + 0.5); + float fg = float(((last_old >> 8) & 0xff) * s + 0.5); + float fb = float(((last_old ) & 0xff) * s + 0.5); last_new = (last_old & 0xFF000000) | ((unsigned int)fr << 16) | ((unsigned int)fg << 8)