QTfrontend/gameuiconfig.cpp
branchexperimental3D
changeset 3696 6009d8378422
parent 3694 3e9c0634065c
child 4004 b1c2c2f6fc5e
--- a/QTfrontend/gameuiconfig.cpp	Mon Aug 02 15:05:56 2010 +0200
+++ b/QTfrontend/gameuiconfig.cpp	Wed Aug 18 20:29:41 2010 +0200
@@ -48,7 +48,7 @@
     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
 
     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
-    Form->ui.pageOptions->CBEnableStereo->setChecked(value("video/anaglyph", false).toBool());
+    Form->ui.pageOptions->CBStereoMode->setCurrentIndex(value("video/stereo", 0).toUInt());
     Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects);
     Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
     Form->ui.pageOptions->CBEnableFrontendSound->setChecked(value("frontend/sound", true).toBool());
@@ -114,7 +114,7 @@
     setValue("video/fullscreen", vid_Fullscreen());
 
     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
-    setValue("video/anaglyph", isStereoEnabled());
+    setValue("video/stereo", stereoMode());
 
     setValue("frontend/effects", isFrontendEffects());
 
@@ -263,9 +263,9 @@
     return Form->ui.pageOptions->CBAltDamage->isChecked();
 }
 
-bool GameUIConfig::isStereoEnabled() const
+quint32 GameUIConfig::stereoMode() const
 {
-    return Form->ui.pageOptions->CBEnableStereo->isChecked();
+    return Form->ui.pageOptions->CBStereoMode->currentIndex();
 }
 
 bool GameUIConfig::appendDateTimeToRecordName()