CProgressBar: add missing assign of 'allow paint' property

Property had no effect.
This commit is contained in:
2014-11-30 00:12:15 +01:00
parent 8ebb5f98ca
commit 663c7deef2

View File

@@ -422,11 +422,14 @@ void CProgressBar::paintProgress(bool do_save_bg)
//progress
bool pb_invert = (pb_type == PB_REDRIGHT) || ((pb_type == PB_TIMESCALE) && g_settings.progressbar_timescale_invert);
if (pb_active_width != pb_last_width) {
CProgressBarCache *pbc = CProgressBarCache::lookup(pb_height, pb_max_width, pb_active_col, pb_passive_col, *pb_design, pb_invert, *pb_gradient, pb_red, pb_yellow, pb_green);
if (pbc)
pbc->paint(pb_x, pb_y, pb_active_width, pb_passive_width);
is_painted = true;
if (cc_allow_paint){
if (pb_active_width != pb_last_width) {
CProgressBarCache *pbc = CProgressBarCache::lookup(pb_height, pb_max_width, pb_active_col, pb_passive_col, *pb_design, pb_invert, *pb_gradient, pb_red, pb_yellow, pb_green);
if (pbc)
pbc->paint(pb_x, pb_y, pb_active_width, pb_passive_width);
is_painted = true;
}
}
if (is_painted)