diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-01 21:37:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-01 22:58:18 +0300 |
commit | 70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1 (patch) | |
tree | fb619fed916b20de36ad97aa9c633110f8681193 /src/gui/widgets/spellshortcutcontainer.cpp | |
parent | 96007521ba20250db0ed05e4d6117077690637db (diff) | |
download | mv-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.gz mv-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.bz2 mv-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.tar.xz mv-70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1.zip |
Add batch drawing to shortcuts windows.
Diffstat (limited to 'src/gui/widgets/spellshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/spellshortcutcontainer.cpp | 10 |
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++) { |