From 9bb11133522836a9c5e251550ac88c9a4e091c0e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 May 2014 12:46:49 +0300 Subject: Move main window related code into windowmanager. --- src/gui/widgets/spellshortcutcontainer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/spellshortcutcontainer.cpp') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 4a4a5beb5..1b3355265 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -25,6 +25,7 @@ #include "client.h" #include "dragdrop.h" #include "itemshortcut.h" +#include "settings.h" #include "spellshortcut.h" #include "gui/viewport.h" @@ -64,7 +65,7 @@ SpellShortcutContainer::SpellShortcutContainer(Widget2 *const widget, if (mBackgroundImg) { - mBackgroundImg->setAlpha(client->getGuiAlpha()); + mBackgroundImg->setAlpha(settings.guiAlpha); mBoxHeight = mBackgroundImg->getHeight(); mBoxWidth = mBackgroundImg->getWidth(); } @@ -97,9 +98,9 @@ void SpellShortcutContainer::draw(Graphics *graphics) return; BLOCK_START("SpellShortcutContainer::draw") - if (client->getGuiAlpha() != mAlpha) + if (settings.guiAlpha != mAlpha) { - mAlpha = client->getGuiAlpha(); + mAlpha = settings.guiAlpha; if (mBackgroundImg) mBackgroundImg->setAlpha(mAlpha); } -- cgit v1.2.3-70-g09d2