summaryrefslogtreecommitdiff
path: root/src/gui/widgets/spellshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-01 21:37:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-01 22:58:18 +0300
commit70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1 (patch)
treefb619fed916b20de36ad97aa9c633110f8681193 /src/gui/widgets/spellshortcutcontainer.cpp
parent96007521ba20250db0ed05e4d6117077690637db (diff)
downloadManaVerse-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.gz
ManaVerse-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.bz2
ManaVerse-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.xz
ManaVerse-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.zip
Add batch drawing to shortcuts windows.
Diffstat (limited to 'src/gui/widgets/spellshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 10e82676e..af9457078 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -107,15 +107,7 @@ void SpellShortcutContainer::draw(gcn::Graphics *graphics)
const int selectedId = spellShortcut->getSelectedItem();
g->setColor(mForegroundColor);
-
- if (mBackgroundImg)
- {
- for (unsigned i = 0; i < mMaxItems; i++)
- {
- g->drawImage(mBackgroundImg, (i % mGridWidth) * mBoxWidth,
- (i / mGridWidth) * mBoxHeight);
- }
- }
+ drawBackground(g);
for (unsigned i = 0; i < mMaxItems; i++)
{