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

this fixes wholes in radiotext gui


Origin commit data
------------------
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 is contained in:
vanhofen
2017-11-30 23:22:53 +01:00
parent c288c0d3b8
commit 0c1581b1a1
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)

View File

@@ -48,7 +48,7 @@ class CInfoIcons
pthread_t thrTimer;
int x, y, width, height, offset;
int start_i, m_entries, popup;
bool status;
bool status, is_painted;
static void CleanUpProc(void* arg);
static void* TimerProc(void *arg);