mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
CInfoViewerBB: try to fix repaint of sys scales after channel switch
Reset should force repaint and scales should be always visible after
footer paint.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3dc56386f5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-16 (Tue, 16 Feb 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -703,6 +703,7 @@ void CInfoViewerBB::showSysfsHdd()
|
||||
void CInfoViewerBB::showBarSys(int percent)
|
||||
{
|
||||
if (is_visible){
|
||||
sysscale->reset();
|
||||
sysscale->doPaintBg(false);
|
||||
sysscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 - 2 - 6, hddwidth, 6);
|
||||
sysscale->setValues(percent, 100);
|
||||
@@ -713,6 +714,7 @@ void CInfoViewerBB::showBarSys(int percent)
|
||||
void CInfoViewerBB::showBarHdd(int percent)
|
||||
{
|
||||
if (is_visible) {
|
||||
hddscale->reset();
|
||||
hddscale->doPaintBg(false);
|
||||
if (percent >= 0){
|
||||
hddscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6);
|
||||
@@ -720,7 +722,6 @@ void CInfoViewerBB::showBarHdd(int percent)
|
||||
hddscale->paint();
|
||||
}else {
|
||||
frameBuffer->paintBoxRel(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6, COL_INFOBAR_BUTTONS_BACKGROUND);
|
||||
hddscale->reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user