From f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 14 Mar 2009 09:52:31 -0600 Subject: Fixed sliders to initialize their alpha values on loading, instead of only using alpha values after the first change. Signed-off-by: Ira Rice --- src/gui/slider.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui') 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++; -- cgit v1.2.3-70-g09d2