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

This commit is contained in:
svenhoefer
2015-12-21 23:38:00 +01:00
committed by M. Liebmann
parent 1f95f38d32
commit 809274d750

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)