summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 1c15ccf2b..381e3102d 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -191,6 +191,14 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics)
SkillInfo *skill = skillDialog->getSkill(itemId - SKILL_MIN_ID);
if (skill)
{
+ Image* image = skill->icon;
+
+ if (image)
+ {
+ image->setAlpha(1.0f);
+ g->drawImage(image, itemX, itemY);
+ }
+
g->drawText(skill->shortName, itemX + 2,
itemY + mBoxHeight / 2, gcn::Graphics::LEFT);
}