CProgressBar: ensure also repaint of progressbar if item is not painted

Origin commit data
------------------
Branch: ni/coolstream
Commit: 33089b9bc0
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-10 (Wed, 10 Feb 2016)


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

------------------
This commit was generated by Migit
This commit is contained in:
2016-02-10 21:06:20 +01:00
parent f9feb67162
commit cf0939316a

View File

@@ -464,7 +464,7 @@ void CProgressBar::paintProgress(bool do_save_bg)
bool pb_invert = (pb_type == PB_REDRIGHT) || ((pb_type == PB_TIMESCALE) && g_settings.progressbar_timescale_invert);
if (cc_allow_paint){
if (pb_active_width != pb_last_width) {
if (!is_painted || (pb_active_width != pb_last_width)) {
CProgressBarCache *pbc = CProgressBarCache::pbcLookup(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->pbcPaint(pb_x, pb_y, pb_active_width, pb_passive_width);