# HG changeset patch # User nemo # Date 1307904326 14400 # Node ID 963d787a25c2142616d00e507a10514f387ebfde # Parent ab044774e29d1eecb9bf6e9e8e045ab08c607492 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) diff -r ab044774e29d -r 963d787a25c2 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);