diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:48:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | d3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch) | |
tree | 420c78c8ceda39895cce60849e3aeafedd41f081 /src/gui/widgets/emoteshortcutcontainer.cpp | |
parent | 576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff) | |
download | mv-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz mv-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2 mv-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz mv-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip |
improve some mode methods in Client.
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/emoteshortcutcontainer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp index 10ef44f6a..1353e6317 100644 --- a/src/gui/widgets/emoteshortcutcontainer.cpp +++ b/src/gui/widgets/emoteshortcutcontainer.cpp @@ -60,7 +60,7 @@ EmoteShortcutContainer::EmoteShortcutContainer(): "item_shortcut_background.xml", "background.xml"); if (mBackgroundImg) - mBackgroundImg->setAlpha(Client::getGuiAlpha()); + mBackgroundImg->setAlpha(client->getGuiAlpha()); // Setup emote sprites for (int i = 0; i <= EmoteDB::getLast(); i++) @@ -109,8 +109,8 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics) return; BLOCK_START("EmoteShortcutContainer::draw") - mAlpha = Client::getGuiAlpha(); - if (Client::getGuiAlpha() != mAlpha && mBackgroundImg) + mAlpha = client->getGuiAlpha(); + if (client->getGuiAlpha() != mAlpha && mBackgroundImg) mBackgroundImg->setAlpha(mAlpha); Graphics *const g = static_cast<Graphics *const>(graphics); |