mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
src/gui/infoviewer.cpp: fix paint progressbar opt 1
This commit is contained in:
@@ -1474,12 +1474,12 @@ void CInfoViewer::display_Info(const char *current, const char *next,
|
|||||||
|
|
||||||
pb_starty = CurrInfoY - ((pb_h * 2) + (pb_h / 6)) ;
|
pb_starty = CurrInfoY - ((pb_h * 2) + (pb_h / 6)) ;
|
||||||
pb_h = (pb_h/3);
|
pb_h = (pb_h/3);
|
||||||
pb_color = COL_INFOBAR_SHADOW_PLUS_0;
|
pb_color = 0;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
pb_starty = CurrInfoY - ((pb_h * 2) + (pb_h / 5)) ;
|
pb_starty = CurrInfoY - ((pb_h * 2) + (pb_h / 5)) ;
|
||||||
pb_h = (pb_h/5);
|
pb_h = (pb_h/5);
|
||||||
pb_color = COL_INFOBAR_SHADOW_PLUS_0;
|
pb_color = 0;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
pb_starty = CurrInfoY + ((pb_h / 3)-(pb_h/5)) ;
|
pb_starty = CurrInfoY + ((pb_h / 3)-(pb_h/5)) ;
|
||||||
|
@@ -191,10 +191,8 @@ void CProgressBar::realpaint(const int pos_x, const int pos_y,
|
|||||||
int maxi = active_pb_width / ITEMW; /* how many POINTs is the active bar */
|
int maxi = active_pb_width / ITEMW; /* how many POINTs is the active bar */
|
||||||
int total = width / ITEMW; /* total number of POINTs */
|
int total = width / ITEMW; /* total number of POINTs */
|
||||||
|
|
||||||
int i, j;
|
|
||||||
uint32_t rgb;
|
uint32_t rgb;
|
||||||
fb_pixel_t color;
|
fb_pixel_t color;
|
||||||
int b = 0;
|
|
||||||
|
|
||||||
if (last_width == -1 && backgroundbar_col != 0) /* first paint */
|
if (last_width == -1 && backgroundbar_col != 0) /* first paint */
|
||||||
{
|
{
|
||||||
@@ -206,6 +204,8 @@ void CProgressBar::realpaint(const int pos_x, const int pos_y,
|
|||||||
|
|
||||||
if (active_pb_width != last_width) {
|
if (active_pb_width != last_width) {
|
||||||
int step;
|
int step;
|
||||||
|
int i, j;
|
||||||
|
int b = 0;
|
||||||
if (active_pb_width > last_width) {
|
if (active_pb_width > last_width) {
|
||||||
for (i = 0; (i < rd) && (i < maxi); i++) {
|
for (i = 0; (i < rd) && (i < maxi); i++) {
|
||||||
step = 255 / rd;
|
step = 255 / rd;
|
||||||
|
Reference in New Issue
Block a user