neutrino menu: paint shortcut numebr only if item is active

We should do the same as with icons.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1557 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 94765187bc
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-06-28 (Tue, 28 Jun 2011)

Origin message was:
------------------
*neutrino menu: paint shortcut numebr only if item is active

We should do the same as with icons.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1557 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
2011-06-28 09:16:17 +00:00
parent 9bd9a9bcc1
commit b86155bb35

View File

@@ -250,7 +250,7 @@ void CMenuItem::paintItemButton(const bool select_mode, const int &item_height,
}
//paint only number if no icon was painted and keyval is numeric
if (CRCInput::isNumeric(directKey) && !icon_painted)
if (active && CRCInput::isNumeric(directKey) && !icon_painted)
{
int number_w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(CRCInput::getKeyName(directKey));