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/emoteshortcutcontainer.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/emoteshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/emoteshortcutcontainer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp index 1d1a5a60b..dcd4fa08e 100644 --- a/src/gui/widgets/emoteshortcutcontainer.cpp +++ b/src/gui/widgets/emoteshortcutcontainer.cpp @@ -110,17 +110,8 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics) mBackgroundImg->setAlpha(mAlpha); Graphics *const g = static_cast<Graphics *const>(graphics); - graphics->setFont(getFont()); - - if (mBackgroundImg) - { - for (unsigned i = 0; i < mMaxItems; i++) - { - g->drawImage(mBackgroundImg, (i % mGridWidth) * mBoxWidth, - (i / mGridWidth) * mBoxHeight); - } - } + drawBackground(g); graphics->setColor(mForegroundColor); for (unsigned i = 0; i < mMaxItems; i++) |