mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
* Various changes for reworked mute icon handling in some classes
- mute icon disabled for moviebrowser, upnpbrowser, pictureviewer - extra handling for audioplayer
This commit is contained in:
@@ -281,6 +281,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);
|
||||
|
||||
@@ -899,6 +901,9 @@ int CAudioPlayerGui::show()
|
||||
ret = menu_return::RETURN_EXIT_ALL;
|
||||
loop = false;
|
||||
}
|
||||
// update mute icon
|
||||
paintHead();
|
||||
paintLCD();
|
||||
}
|
||||
}
|
||||
hide();
|
||||
@@ -1667,6 +1672,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);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user