one more interface trick, force max resolution possible when in fullscreen experimental3D
authorkoda
Wed, 27 Oct 2010 14:23:47 +0200
branchexperimental3D
changeset 4006 45b63c2a694f
parent 4004 b1c2c2f6fc5e
child 4343 19cbea33e4d2
one more interface trick, force max resolution possible when in fullscreen
QTfrontend/pages.cpp
QTfrontend/pages.h
--- a/QTfrontend/pages.cpp	Wed Oct 27 14:02:20 2010 +0200
+++ b/QTfrontend/pages.cpp	Wed Oct 27 14:23:47 2010 +0200
@@ -778,6 +778,12 @@
 
 void PageOptions::setFullscreen(void)
 {
+    int tmp = this->CBResolution->currentIndex();
+    if (this->CBFullscreen->isChecked())
+        this->CBResolution->setCurrentIndex(0);
+    else
+        this->CBResolution->setCurrentIndex(previousResolutionIndex);
+    previousResolutionIndex = tmp;
     this->CBResolution->setEnabled(!this->CBFullscreen->isChecked());
 }
 
--- a/QTfrontend/pages.h	Wed Oct 27 14:02:20 2010 +0200
+++ b/QTfrontend/pages.h	Wed Oct 27 14:23:47 2010 +0200
@@ -243,7 +243,10 @@
     QLineEdit *editNetNick;
     QSlider *SLQuality;
     QCheckBox *CBFrontendEffects;
+
+private:
     bool previousFullscreenValue;
+    int previousResolutionIndex;
 
 private slots:
     void forceFullscreen(int index);