diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 19:40:49 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 19:40:49 -0600 |
commit | 9078373860729cdf80db8d09cbdee478dc54ec64 (patch) | |
tree | 3e27392dfbca5fe0368d99d577044a6d90bbb41a /src/gui | |
parent | a0c7d1f61783e77e552896824855377e4bb43f8d (diff) | |
download | mana-9078373860729cdf80db8d09cbdee478dc54ec64.tar.gz mana-9078373860729cdf80db8d09cbdee478dc54ec64.tar.bz2 mana-9078373860729cdf80db8d09cbdee478dc54ec64.tar.xz mana-9078373860729cdf80db8d09cbdee478dc54ec64.zip |
Remove some more #ifdefs
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index 97c3b640..62edd1af 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -39,6 +39,7 @@ #include "resources/resourcemanager.h" #include "utils/stringutils.h" +#include "utils/strprintf.h" ItemShortcutContainer::ItemShortcutContainer(): ShortcutContainer(), @@ -106,11 +107,9 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics) if (image) { - const std::string label = -#ifdef EATHENA_SUPPORT - item->isEquipped() ? "Eq." : -#endif - toString(item->getQuantity()); + const std::string label = strprintf("%d%s", + toString(item->getQuantity()).c_str(), + item->isEquipped() ? "(Eq)" : ""); g->drawImage(image, itemX, itemY); g->drawText(label, itemX + mBoxWidth / 2, itemY + mBoxHeight - 14, gcn::Graphics::CENTER); |