mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +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)
|
void CInfoViewerBB::showBarSys(int percent)
|
||||||
{
|
{
|
||||||
if (is_visible){
|
if (is_visible){
|
||||||
|
sysscale->reset();
|
||||||
sysscale->doPaintBg(false);
|
sysscale->doPaintBg(false);
|
||||||
sysscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 - 2 - 6, hddwidth, 6);
|
sysscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 - 2 - 6, hddwidth, 6);
|
||||||
sysscale->setValues(percent, 100);
|
sysscale->setValues(percent, 100);
|
||||||
@@ -713,6 +714,7 @@ void CInfoViewerBB::showBarSys(int percent)
|
|||||||
void CInfoViewerBB::showBarHdd(int percent)
|
void CInfoViewerBB::showBarHdd(int percent)
|
||||||
{
|
{
|
||||||
if (is_visible) {
|
if (is_visible) {
|
||||||
|
hddscale->reset();
|
||||||
hddscale->doPaintBg(false);
|
hddscale->doPaintBg(false);
|
||||||
if (percent >= 0){
|
if (percent >= 0){
|
||||||
hddscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6);
|
hddscale->setDimensionsAll(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6);
|
||||||
@@ -720,7 +722,6 @@ void CInfoViewerBB::showBarHdd(int percent)
|
|||||||
hddscale->paint();
|
hddscale->paint();
|
||||||
}else {
|
}else {
|
||||||
frameBuffer->paintBoxRel(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6, COL_INFOBAR_BUTTONS_BACKGROUND);
|
frameBuffer->paintBoxRel(bbIconMinX, BBarY + InfoHeightY_Info / 2 + 2 + 0, hddwidth, 6, COL_INFOBAR_BUTTONS_BACKGROUND);
|
||||||
hddscale->reset();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user