mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
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:
@@ -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)
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user