diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 11:52:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 11:52:27 +0000 |
commit | 19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (patch) | |
tree | 5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/setup_video.cpp | |
parent | 59399a274c694e9dc467149828b57f47794eeaeb (diff) | |
download | mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.gz mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.bz2 mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.xz mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.zip |
Removed some duplicate initializations.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 17 |
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"); |