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

Origin commit data
------------------
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
This commit is contained in:
vanhofen
2015-12-21 23:38:00 +01:00
committed by Michael Liebmann
parent e5e740fcf7
commit 02d4c8e674

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)