menue: don't paint hotkey icons on deactivated items; use dummy icon

Origin commit data
------------------
Branch: ni/coolstream
Commit: 809274d750
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-12-21 (Mon, 21 Dec 2015)

Origin message was:
------------------
- menue: don't paint hotkey icons on deactivated items; use dummy icon

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2015-12-21 23:38:00 +01:00
committed by Michael Liebmann
parent cf5f9ee37e
commit 19a054cf59

View File

@@ -340,6 +340,9 @@ void CMenuItem::paintItemButton(const bool select_mode, int item_height, const c
//get data of number icon and paint
if (icon_name && *icon_name)
{
if (!active)
icon_name = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
frameBuffer->getIconSize(icon_name, &icon_w, &icon_h);
if (/*active &&*/ icon_w>0 && icon_h>0 && icon_space_x >= icon_w)