summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-23 02:05:18 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-23 02:05:18 +0300
commita285bd7b3d888285095a295ab9e393560a69f30b (patch)
treea609717d7d41c89947079f49856cb5325119d7f9 /src/gui/widgets
parentf9c1374417b17c45f84884e9ca0327910d187898 (diff)
downloadmanaplus-a285bd7b3d888285095a295ab9e393560a69f30b.tar.gz
manaplus-a285bd7b3d888285095a295ab9e393560a69f30b.tar.bz2
manaplus-a285bd7b3d888285095a295ab9e393560a69f30b.tar.xz
manaplus-a285bd7b3d888285095a295ab9e393560a69f30b.zip
Use skin option textOffsetY in item shortcut container.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 50155fa92..dcafa2233 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -206,7 +206,7 @@ void ItemShortcutContainer::draw(Graphics *const graphics)
mForegroundColor,
spell->getSymbol(),
itemX + mTextOffsetX,
- itemY + mBoxHeight / 2);
+ itemY + mTextOffsetY);
}
}
else if (skillDialog != nullptr)
@@ -231,7 +231,7 @@ void ItemShortcutContainer::draw(Graphics *const graphics)
mForegroundColor,
skill->data->shortName,
itemX + mTextOffsetX,
- itemY + mBoxHeight / 2);
+ itemY + mTextOffsetY);
}
}
}
@@ -353,7 +353,7 @@ void ItemShortcutContainer::safeDraw(Graphics *const graphics)
mForegroundColor,
spell->getSymbol(),
itemX + mTextOffsetX,
- itemY + mBoxHeight / 2);
+ itemY + mTextOffsetY);
}
}
else if (skillDialog != nullptr)
@@ -378,7 +378,7 @@ void ItemShortcutContainer::safeDraw(Graphics *const graphics)
mForegroundColor,
skill->data->shortName,
itemX + mTextOffsetX,
- itemY + mBoxHeight / 2);
+ itemY + mTextOffsetY);
}
}
}