summaryrefslogtreecommitdiff
path: root/src/gui/setup_audio.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_audio.cpp
parent59399a274c694e9dc467149828b57f47794eeaeb (diff)
downloadmana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.gz
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.bz2
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.xz
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.zip
Removed some duplicate initializations.
Diffstat (limited to 'src/gui/setup_audio.cpp')
-rw-r--r--src/gui/setup_audio.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp
index a640887b..6f884e2f 100644
--- a/src/gui/setup_audio.cpp
+++ b/src/gui/setup_audio.cpp
@@ -34,12 +34,12 @@
#include "../sound.h"
Setup_Audio::Setup_Audio():
- mSoundCheckBox(new CheckBox("Sound", false)),
- mSfxSlider(new Slider(0, 128)),
- mMusicSlider(new Slider(0, 128)),
mMusicVolume((int)config.getValue("musicVolume", 60)),
mSfxVolume((int)config.getValue("sfxVolume", 100)),
- mSoundEnabled(config.getValue("sound", 0))
+ mSoundEnabled(config.getValue("sound", 0)),
+ mSoundCheckBox(new CheckBox("Sound", mSoundEnabled)),
+ mSfxSlider(new Slider(0, 128)),
+ mMusicSlider(new Slider(0, 128))
{
setOpaque(false);
@@ -58,7 +58,6 @@ Setup_Audio::Setup_Audio():
sfxLabel->setPosition(20 + mSfxSlider->getWidth(), 27);
musicLabel->setPosition(20 + mMusicSlider->getWidth(), 47);
- mSoundCheckBox->setMarked(mSoundEnabled);
mSfxSlider->setValue(mSfxVolume);
mMusicSlider->setValue(mMusicVolume);