summaryrefslogtreecommitdiff
path: root/src/gui/slider.cpp
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/slider.cpp
parentf754da1e3a3a4d2c377cb8d1b61899783dff5736 (diff)
downloadmana-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.gz
mana-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.bz2
mana-f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54.tar.xz
mana-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/slider.cpp')
-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++;