If 2 or more resolutions are available, use the 2nd in the list. This should (usually) be smaller than the desktop resolution, which should reduce noob fail (not realising part of interface is obscured)
authornemo
Sun, 12 Jun 2011 14:45:26 -0400
changeset 5237 963d787a25c2
parent 5236 ab044774e29d
child 5238 46ddaf14509d
If 2 or more resolutions are available, use the 2nd in the list. This should (usually) be smaller than the desktop resolution, which should reduce noob fail (not realising part of interface is obscured)
QTfrontend/gameuiconfig.cpp
--- a/QTfrontend/gameuiconfig.cpp	Sun Jun 12 10:33:55 2011 -0400
+++ b/QTfrontend/gameuiconfig.cpp	Sun Jun 12 14:45:26 2011 -0400
@@ -44,7 +44,14 @@
     Form->ui.pageOptions->WeaponTooltip->setChecked(value("misc/weaponTooltips", true).toBool());
 
     int t = Form->ui.pageOptions->CBResolution->findText(value("video/resolution").toString());
-    Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
+    if (t < 0) {
+        if (Form->ui.pageOptions->CBResolution->count() > 1)
+            Form->ui.pageOptions->CBResolution->setCurrentIndex(1);
+        else 
+            Form->ui.pageOptions->CBResolution->setCurrentIndex(0);
+    }
+    else Form->ui.pageOptions->CBResolution->setCurrentIndex(t);
+    Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 1 : t);
     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
     bool ffscr=value("frontend/fullscreen", false).toBool();
     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);