diff main/main.cpp @ 379:3d1c69b2215e

* Merge
author Chris Cannam
date Mon, 18 Oct 2010 13:47:21 +0100
parents 210a409e135a 84fd4bb8d656
children 61111a6a229f d70890996156
line wrap: on
line diff
--- a/main/main.cpp	Mon Oct 18 12:45:14 2010 +0100
+++ b/main/main.cpp	Mon Oct 18 13:47:21 2010 +0100
@@ -324,9 +324,9 @@
     QDesktopWidget *desktop = QApplication::desktop();
     QRect available = desktop->availableGeometry();
 
-    int width = available.width() * 2 / 3;
+    int width = (available.width() * 2) / 3;
     int height = available.height() / 2;
-    if (height < 450) height = available.height() * 2 / 3;
+    if (height < 450) height = (available.height() * 2) / 3;
     if (width > height * 2) width = height * 2;
 
     settings.beginGroup("MainWindow");