infoicons: don't hide already hidden icons; ...

this fixes wholes in radiotext gui


Origin commit data
------------------
Branch: ni/coolstream
Commit: 28fad37230
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-30 (Thu, 30 Nov 2017)

Origin message was:
------------------
- infoicons: don't hide already hidden icons; ...

this fixes wholes in radiotext gui


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-30 23:22:53 +01:00
parent 2880266420
commit 7fd6d3ae25
2 changed files with 8 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ CInfoIcons::CInfoIcons()
thrTimer = 0;
status = false;
is_painted = false;
Init();
}
@@ -242,11 +243,16 @@ void CInfoIcons::paintIcons(bool first)
startx += icon[i].sizeW;
}
}
is_painted = true;
}
void CInfoIcons::hideIcons()
{
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
if (is_painted)
{
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
is_painted = false;
}
}
void* CInfoIcons::TimerProc(void *arg)