mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- audioplayer: don't paint something if screensaver is active
This commit is contained in:
@@ -1721,7 +1721,9 @@ const struct button_label AudioPlayerButtons[][4] =
|
|||||||
|
|
||||||
void CAudioPlayerGui::paintFoot()
|
void CAudioPlayerGui::paintFoot()
|
||||||
{
|
{
|
||||||
// printf("paintFoot{\n");
|
if (m_screensaver)
|
||||||
|
return;
|
||||||
|
|
||||||
const struct button_label ScondLineButtons[3] =
|
const struct button_label ScondLineButtons[3] =
|
||||||
{
|
{
|
||||||
{ NEUTRINO_ICON_BUTTON_OKAY , LOCALE_AUDIOPLAYER_PLAY },
|
{ NEUTRINO_ICON_BUTTON_OKAY , LOCALE_AUDIOPLAYER_PLAY },
|
||||||
@@ -1786,6 +1788,9 @@ const struct button_label ScondLineButtons[3] =
|
|||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
void CAudioPlayerGui::paintInfo()
|
void CAudioPlayerGui::paintInfo()
|
||||||
{
|
{
|
||||||
|
if (m_screensaver)
|
||||||
|
return;
|
||||||
|
|
||||||
int c_rad_mid = RADIUS_MID;
|
int c_rad_mid = RADIUS_MID;
|
||||||
if (m_state == CAudioPlayerGui::STOP && m_show_playlist)
|
if (m_state == CAudioPlayerGui::STOP && m_show_playlist)
|
||||||
m_frameBuffer->paintBackgroundBoxRel(m_x, m_y, m_width, m_title_height);
|
m_frameBuffer->paintBackgroundBoxRel(m_x, m_y, m_width, m_title_height);
|
||||||
@@ -1882,8 +1887,8 @@ void CAudioPlayerGui::paint()
|
|||||||
m_frameBuffer->paintBoxRel(m_x + m_width - 13, ypos + 2 + sbs*(sb-4)/sbc , 11, (sb-4)/sbc, COL_MENUCONTENT_PLUS_3, RADIUS_SMALL);
|
m_frameBuffer->paintBoxRel(m_x + m_width - 13, ypos + 2 + sbs*(sb-4)/sbc , 11, (sb-4)/sbc, COL_MENUCONTENT_PLUS_3, RADIUS_SMALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
paintFoot();
|
|
||||||
paintInfo();
|
paintInfo();
|
||||||
|
paintFoot();
|
||||||
m_visible = true;
|
m_visible = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2099,10 +2104,8 @@ void CAudioPlayerGui::play(unsigned int pos)
|
|||||||
//LCD
|
//LCD
|
||||||
paintLCD();
|
paintLCD();
|
||||||
// Display
|
// Display
|
||||||
if (!m_screensaver)
|
|
||||||
paintInfo();
|
paintInfo();
|
||||||
m_key_level = 1;
|
m_key_level = 1;
|
||||||
if (!m_screensaver)
|
|
||||||
paintFoot();
|
paintFoot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user