summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widgets/slider.cpp')
-rw-r--r--src/guichan/widgets/slider.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/guichan/widgets/slider.cpp b/src/guichan/widgets/slider.cpp
index 7611fdfd7..322f2ef76 100644
--- a/src/guichan/widgets/slider.cpp
+++ b/src/guichan/widgets/slider.cpp
@@ -61,15 +61,15 @@ namespace gcn
gcn::MouseListener(),
gcn::KeyListener(),
mDragged(false),
+ mValue(0),
+ mStepLength(scaleEnd / 10),
+ mMarkerLength(10),
mScaleStart(0),
- mScaleEnd(scaleEnd)
+ mScaleEnd(scaleEnd),
+ mOrientation(HORIZONTAL)
{
setFocusable(true);
setFrameSize(1);
- setOrientation(HORIZONTAL);
- setValue(0);
- setStepLength(scaleEnd / 10);
- setMarkerLength(10);
addMouseListener(this);
addKeyListener(this);
@@ -80,15 +80,15 @@ namespace gcn
gcn::MouseListener(),
gcn::KeyListener(),
mDragged(false),
+ mValue(scaleStart),
+ mStepLength((scaleEnd - scaleStart) / 10),
+ mMarkerLength(10),
mScaleStart(scaleStart),
- mScaleEnd(scaleEnd)
+ mScaleEnd(scaleEnd),
+ mOrientation(HORIZONTAL)
{
setFocusable(true);
setFrameSize(1);
- setOrientation(HORIZONTAL);
- setValue(scaleStart);
- setStepLength((scaleEnd - scaleStart) / 10);
- setMarkerLength(10);
addMouseListener(this);
addKeyListener(this);