summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 11:52:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 11:52:27 +0000
commit19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (patch)
tree5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/setup_video.cpp
parent59399a274c694e9dc467149828b57f47794eeaeb (diff)
downloadmana-client-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.gz
mana-client-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.bz2
mana-client-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.xz
mana-client-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.zip
Removed some duplicate initializations.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 2c314342..a009d2d5 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -99,16 +99,16 @@ ModeListModel::ModeListModel()
}
Setup_Video::Setup_Video():
- mModeListModel(new ModeListModel()),
- mModeList(new ListBox(mModeListModel)),
- mFsCheckBox(new CheckBox("Full screen", false)),
- mOpenGLCheckBox(new CheckBox("OpenGL", false)),
- mCustomCursorCheckBox(new CheckBox("Custom cursor")),
- mAlphaSlider(new Slider(0.2, 1.0)),
mFullScreenEnabled(config.getValue("screen", 0)),
mOpenGLEnabled(config.getValue("opengl", 0)),
mCustomCursorEnabled(config.getValue("customcursor", 1)),
- mOpacity(config.getValue("guialpha", 0.8))
+ mOpacity(config.getValue("guialpha", 0.8)),
+ mModeListModel(new ModeListModel()),
+ mModeList(new ListBox(mModeListModel)),
+ mFsCheckBox(new CheckBox("Full screen", mFullScreenEnabled)),
+ mOpenGLCheckBox(new CheckBox("OpenGL", mOpenGLEnabled)),
+ mCustomCursorCheckBox(new CheckBox("Custom cursor", mCustomCursorEnabled)),
+ mAlphaSlider(new Slider(0.2, 1.0))
{
setOpaque(false);
@@ -129,9 +129,6 @@ Setup_Video::Setup_Video():
alphaLabel->setPosition(20 + mAlphaSlider->getWidth(), mAlphaSlider->getY());
mModeList->setSelected(-1);
- mFsCheckBox->setMarked(mFullScreenEnabled);
- mOpenGLCheckBox->setMarked(mOpenGLEnabled);
- mCustomCursorCheckBox->setMarked(mCustomCursorEnabled);
mAlphaSlider->setValue(mOpacity);
mCustomCursorCheckBox->setEventId("customcursor");