use a gentler positive parallax for background effect experimental3D
authorkoda
Wed, 22 Dec 2010 12:17:34 +0100
branchexperimental3D
changeset 4345 2c93d6a10869
parent 4343 19cbea33e4d2
child 4347 0ddb100fea61
use a gentler positive parallax for background effect disable the quality slider when stereoscopic mode is selected
QTfrontend/pages.cpp
QTfrontend/pages.h
hedgewars/uWorld.pas
--- a/QTfrontend/pages.cpp	Mon Nov 15 12:37:39 2010 +0100
+++ b/QTfrontend/pages.cpp	Wed Dec 22 12:17:34 2010 +0100
@@ -774,9 +774,14 @@
         previousFullscreenValue = this->CBFullscreen->isChecked();
         this->CBFullscreen->setChecked(true);
         this->CBFullscreen->setEnabled(false);
+        previousQuality = this->SLQuality->value();
+        this->SLQuality->setValue(this->SLQuality->maximum());
+        this->SLQuality->setEnabled(false);
     } else {
         this->CBFullscreen->setChecked(previousFullscreenValue);
         this->CBFullscreen->setEnabled(true);
+        this->SLQuality->setValue(previousQuality);
+        this->SLQuality->setEnabled(true);
     }
 }
 
--- a/QTfrontend/pages.h	Mon Nov 15 12:37:39 2010 +0100
+++ b/QTfrontend/pages.h	Wed Dec 22 12:17:34 2010 +0100
@@ -247,6 +247,7 @@
 private:
     bool previousFullscreenValue;
     int previousResolutionIndex;
+    int previousQuality;
 
 private slots:
     void forceFullscreen(int index);
--- a/hedgewars/uWorld.pas	Mon Nov 15 12:37:39 2010 +0100
+++ b/hedgewars/uWorld.pas	Wed Dec 22 12:17:34 2010 +0100
@@ -75,7 +75,7 @@
     missionTimer: LongInt;
     stereoDepth: GLfloat = 0;
 
-const cStereo_Sky     = 0.0750;
+const cStereo_Sky     = 0.0500;
       cStereo_Horizon = 0.0250;
       cStereo_Water   = 0.0125;