mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0630507360
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-20 (Sun, 20 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1128,19 +1128,17 @@ void CInfoViewer::display_Info(const char *current, const char *next,
|
|||||||
xStart = InfoX;
|
xStart = InfoX;
|
||||||
|
|
||||||
#ifndef NO_BLINKENLIGHTS
|
#ifndef NO_BLINKENLIGHTS
|
||||||
static int oldrunningPercent = -1;
|
|
||||||
int posy = BoxStartY + 16;
|
int posy = BoxStartY + 16;
|
||||||
int height2 = 20;
|
int height2 = 20;
|
||||||
if (pb_pos > -1)
|
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 - 104, posy + 6, 108, 14, COL_INFOBAR_SHADOW_PLUS_0, 1);
|
||||||
frameBuffer->paintBoxRel(BoxEndX - 108, posy + 2, 108, 14, COL_INFOBAR_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);
|
timescale->paint(BoxEndX - 102, posy + 2, pb_pos);
|
||||||
} else {
|
} else {
|
||||||
oldrunningPercent = -1;
|
timescale->reset();
|
||||||
frameBuffer->paintBackgroundBoxRel(BoxEndX - 108, posy, 112, height2);
|
frameBuffer->paintBackgroundBoxRel(BoxEndX - 108, posy, 112, height2);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user