summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emoteshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-01 03:34:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-01 03:34:08 +0300
commit5adcad73b15aafa56ef77c794bf7ebfeff28049b (patch)
tree2cfe32eade47b7a84375cc7a3c60085b147183fe /src/gui/widgets/emoteshortcutcontainer.cpp
parentf5ed6062017598fbdf9c3a7e4c53b5eeeddfe3ad (diff)
downloadmanaverse-5adcad73b15aafa56ef77c794bf7ebfeff28049b.tar.gz
manaverse-5adcad73b15aafa56ef77c794bf7ebfeff28049b.tar.bz2
manaverse-5adcad73b15aafa56ef77c794bf7ebfeff28049b.tar.xz
manaverse-5adcad73b15aafa56ef77c794bf7ebfeff28049b.zip
Improve emotes window draw speed.
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp
index a7bb46433..9e1206a4c 100644
--- a/src/gui/widgets/emoteshortcutcontainer.cpp
+++ b/src/gui/widgets/emoteshortcutcontainer.cpp
@@ -117,6 +117,7 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics)
}
}
+ graphics->setColor(mForegroundColor);
for (unsigned i = 0; i < mMaxItems; i++)
{
const int emoteX = (i % mGridWidth) * mBoxWidth;
@@ -126,7 +127,6 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics)
const std::string key = inputManager.getKeyValueString(
Input::KEY_EMOTE_1 + i);
- graphics->setColor(mForegroundColor);
g->drawText(key, emoteX + 2, emoteY + 2, gcn::Graphics::LEFT);
}
const unsigned sz = static_cast<unsigned>(mEmoteImg.size());