mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
Merge remote-tracking branch 'check/next-cc'
needs buildfixing in framebuffer class... Conflicts: data/locale/deutsch.locale data/locale/english.locale src/driver/fontrenderer.cpp src/driver/volume.cpp src/gui/audiomute.cpp src/gui/audioplayer.cpp src/gui/osd_setup.cpp src/gui/widget/stringinput.cpp src/neutrino.cpp
This commit is contained in:
@@ -282,6 +282,8 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
m_fheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||
|
||||
int iw, ih;
|
||||
m_frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_MUTE, &iw, &ih);
|
||||
m_theight = std::max(m_theight, ih+2);
|
||||
m_frameBuffer->getIconSize(NEUTRINO_ICON_MP3, &iw, &ih);
|
||||
m_theight = std::max(m_theight, ih+4);
|
||||
|
||||
@@ -900,6 +902,9 @@ int CAudioPlayerGui::show()
|
||||
ret = menu_return::RETURN_EXIT_ALL;
|
||||
loop = false;
|
||||
}
|
||||
// update mute icon
|
||||
paintHead();
|
||||
paintLCD();
|
||||
}
|
||||
m_frameBuffer->blit();
|
||||
}
|
||||
@@ -1639,7 +1644,7 @@ void CAudioPlayerGui::paintItem(int pos)
|
||||
|
||||
void CAudioPlayerGui::paintHead()
|
||||
{
|
||||
if (!m_show_playlist)
|
||||
if (!m_show_playlist || m_screensaver)
|
||||
return;
|
||||
|
||||
int c_rad_mid = RADIUS_MID;
|
||||
@@ -1670,6 +1675,11 @@ void CAudioPlayerGui::paintHead()
|
||||
}
|
||||
//m_frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MENU, m_x + m_width - 30, ypos);
|
||||
#endif
|
||||
if ( CNeutrinoApp::getInstance()->isMuted() )
|
||||
{
|
||||
m_frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_MUTE, &iw, &ih);
|
||||
m_frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MUTE, xpos - iw, ypos, m_theight);
|
||||
}
|
||||
m_frameBuffer->blit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user