diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-30 12:46:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-30 12:46:49 +0300 |
commit | 9bb11133522836a9c5e251550ac88c9a4e091c0e (patch) | |
tree | f65703ac1a51b79a0766c48420769d28d0847f41 /src/gui/widgets/dropshortcutcontainer.cpp | |
parent | e55ed9a138e97f6fba5e3b6858a755f8a50197d2 (diff) | |
download | manaplus-9bb11133522836a9c5e251550ac88c9a4e091c0e.tar.gz manaplus-9bb11133522836a9c5e251550ac88c9a4e091c0e.tar.bz2 manaplus-9bb11133522836a9c5e251550ac88c9a4e091c0e.tar.xz manaplus-9bb11133522836a9c5e251550ac88c9a4e091c0e.zip |
Move main window related code into windowmanager.
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/dropshortcutcontainer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp index 6e4e0d90c..150c94f77 100644 --- a/src/gui/widgets/dropshortcutcontainer.cpp +++ b/src/gui/widgets/dropshortcutcontainer.cpp @@ -25,6 +25,7 @@ #include "client.h" #include "dragdrop.h" #include "dropshortcut.h" +#include "settings.h" #include "being/playerinfo.h" @@ -65,7 +66,7 @@ DropShortcutContainer::DropShortcutContainer(Widget2 *const widget) : if (mBackgroundImg) { - mBackgroundImg->setAlpha(client->getGuiAlpha()); + mBackgroundImg->setAlpha(settings.guiAlpha); mBoxHeight = mBackgroundImg->getHeight(); mBoxWidth = mBackgroundImg->getWidth(); } @@ -101,9 +102,9 @@ void DropShortcutContainer::draw(Graphics *graphics) return; BLOCK_START("DropShortcutContainer::draw") - if (client->getGuiAlpha() != mAlpha) + if (settings.guiAlpha != mAlpha) { - mAlpha = client->getGuiAlpha(); + mAlpha = settings.guiAlpha; if (mBackgroundImg) mBackgroundImg->setAlpha(mAlpha); } |