From 06305073608b112ddeff366fd7cfe794c4dd823e Mon Sep 17 00:00:00 2001 From: seife Date: Sun, 20 Dec 2009 22:28:19 +0000 Subject: [PATCH] infoviewer: fix timescale background in blinkenlights mode The timescale background was not painted on subsequent calls of the infobar unless the percentage had changed. Thanks lucgas for reporting. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@102 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/infoviewer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 396d502c6..67d69652e 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1128,19 +1128,17 @@ void CInfoViewer::display_Info(const char *current, const char *next, xStart = InfoX; #ifndef NO_BLINKENLIGHTS - static int oldrunningPercent = -1; int posy = BoxStartY + 16; int height2 = 20; if (pb_pos > -1) { - if (oldrunningPercent != pb_pos) { + if (timescale->getPercent() != pb_pos) { frameBuffer->paintBoxRel(BoxEndX - 104, posy + 6, 108, 14, COL_INFOBAR_SHADOW_PLUS_0, 1); frameBuffer->paintBoxRel(BoxEndX - 108, posy + 2, 108, 14, COL_INFOBAR_PLUS_0, 1); - oldrunningPercent = pb_pos; } timescale->paint(BoxEndX - 102, posy + 2, pb_pos); } else { - oldrunningPercent = -1; + timescale->reset(); frameBuffer->paintBackgroundBoxRel(BoxEndX - 108, posy, 112, height2); } #else