mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
streaminfo2.cpp: reduce signalbox flickering
Origin commit data
------------------
Commit: 5cb0ca21cd
Author: defans <defans@bluepeercrew.us>
Date: 2015-11-20 (Fri, 20 Nov 2015)
Origin message was:
------------------
- streaminfo2.cpp: reduce signalbox flickering
This commit is contained in:
@@ -441,6 +441,13 @@ void CStreamInfo2::paint (int /*mode*/)
|
|||||||
int xpos = x + 10;
|
int xpos = x + 10;
|
||||||
|
|
||||||
if (paint_mode == 0) {
|
if (paint_mode == 0) {
|
||||||
|
if (signalbox != NULL)
|
||||||
|
{
|
||||||
|
signalbox->kill();
|
||||||
|
delete signalbox;
|
||||||
|
signalbox = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// -- tech Infos, PIG, small signal graph
|
// -- tech Infos, PIG, small signal graph
|
||||||
head_string = g_Locale->getText (LOCALE_STREAMINFO_HEAD);
|
head_string = g_Locale->getText (LOCALE_STREAMINFO_HEAD);
|
||||||
CVFD::getInstance ()->setMode (CVFD::MODE_MENU_UTF8, head_string);
|
CVFD::getInstance ()->setMode (CVFD::MODE_MENU_UTF8, head_string);
|
||||||
@@ -982,17 +989,13 @@ int CStreamInfo2::ts_close ()
|
|||||||
|
|
||||||
void CStreamInfo2::showSNR ()
|
void CStreamInfo2::showSNR ()
|
||||||
{
|
{
|
||||||
if (signalbox != NULL)
|
if (signalbox == NULL)
|
||||||
{
|
{
|
||||||
signalbox->kill();
|
signalbox = new CSignalBox(x + 10, yypos, 240, 50, frontend);
|
||||||
delete signalbox;
|
signalbox->setColorBody(COL_MENUHEAD_PLUS_0);
|
||||||
signalbox = NULL;
|
signalbox->setTextColor(COL_INFOBAR_TEXT);
|
||||||
|
signalbox->doPaintBg(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
signalbox = new CSignalBox(x + 10, yypos, 240, 50, frontend);
|
|
||||||
signalbox->setColorBody(COL_MENUHEAD_PLUS_0);
|
|
||||||
signalbox->setTextColor(COL_INFOBAR_TEXT);
|
|
||||||
signalbox->doPaintBg(true);
|
|
||||||
|
|
||||||
signalbox->paint(false);
|
signalbox->paint(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user