Try to be friendlier to small screen sizes. Use 800x600 if width/height of 2/3rds is smaller than 800x600 (things don't look smaller than that size), use desktop size if it is for some reason smaller than 800x600
authornemo
Fri, 14 Dec 2012 09:53:17 -0500
changeset 8290 3240f4500ac1
parent 8289 302a2521fe7a
child 8292 c284ea71a4f8
Try to be friendlier to small screen sizes. Use 800x600 if width/height of 2/3rds is smaller than 800x600 (things don't look smaller than that size), use desktop size if it is for some reason smaller than 800x600
QTfrontend/gameuiconfig.cpp
--- a/QTfrontend/gameuiconfig.cpp	Mon Dec 10 10:32:51 2012 -0500
+++ b/QTfrontend/gameuiconfig.cpp	Fri Dec 14 09:53:17 2012 -0500
@@ -191,8 +191,8 @@
 {
     // fill 2/3 of the screen desktop
     const QRect deskSize = QApplication::desktop()->screenGeometry(-1);
-    Form->resize(value("frontend/width", deskSize.width()*2/3).toUInt(),
-                 value("frontend/height", deskSize.height()*2/3).toUInt());
+    Form->resize(value("frontend/width", qMin(qMax(deskSize.width()*2/3,800),deskSize.width())).toUInt(),
+                 value("frontend/height", qMax(qMin(deskSize.height()*2/3,600),deskSize.height())).toUInt());
 
     // move the window to the center of the screen
     QPoint center = QApplication::desktop()->availableGeometry(-1).center();