mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 16:03:36 +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;
|
thrTimer = 0;
|
||||||
status = false;
|
status = false;
|
||||||
|
is_painted = false;
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
@@ -242,11 +243,16 @@ void CInfoIcons::paintIcons(bool first)
|
|||||||
startx += icon[i].sizeW;
|
startx += icon[i].sizeW;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
is_painted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoIcons::hideIcons()
|
void CInfoIcons::hideIcons()
|
||||||
{
|
{
|
||||||
|
if (is_painted)
|
||||||
|
{
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
frameBuffer->paintBackgroundBoxRel(x, y, width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
||||||
|
is_painted = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void* CInfoIcons::TimerProc(void *arg)
|
void* CInfoIcons::TimerProc(void *arg)
|
||||||
|
@@ -48,7 +48,7 @@ class CInfoIcons
|
|||||||
pthread_t thrTimer;
|
pthread_t thrTimer;
|
||||||
int x, y, width, height, offset;
|
int x, y, width, height, offset;
|
||||||
int start_i, m_entries, popup;
|
int start_i, m_entries, popup;
|
||||||
bool status;
|
bool status, is_painted;
|
||||||
static void CleanUpProc(void* arg);
|
static void CleanUpProc(void* arg);
|
||||||
static void* TimerProc(void *arg);
|
static void* TimerProc(void *arg);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user