summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-14 09:52:31 -0600
committerIra Rice <irarice@gmail.com>2009-03-14 09:52:31 -0600
commitf0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54 (patch)
treebbaf0a7a89b25b6e65e6634218d90b88985aed9f /src/gui
parentf754da1e3a3a4d2c377cb8d1b61899783dff5736 (diff)
downloadmana-client-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.gz
mana-client-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.bz2
mana-client-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.xz
mana-client-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.zip
Fixed sliders to initialize their alpha values on loading, instead of
only using alpha values after the first change. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/slider.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/slider.cpp b/src/gui/slider.cpp
index db34cc6a..a2df59a4 100644
--- a/src/gui/slider.cpp
+++ b/src/gui/slider.cpp
@@ -96,6 +96,16 @@ void Slider::init()
vGrip = slider->getSubImage(x, y, w, h);
slider->decRef();
+
+ hStart->setAlpha(mAlpha);
+ hMid->setAlpha(mAlpha);
+ hEnd->setAlpha(mAlpha);
+ hGrip->setAlpha(mAlpha);
+
+ vStart->setAlpha(mAlpha);
+ vMid->setAlpha(mAlpha);
+ vEnd->setAlpha(mAlpha);
+ vGrip->setAlpha(mAlpha);
}
mInstances++;