Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 378:84fd4bb8d656
* Add misc/ directory from SVN repo
author | Chris Cannam |
---|---|
date | Mon, 18 Oct 2010 13:44:25 +0100 |
parents | 3bb7eef5d45c |
children | 3d1c69b2215e |
line wrap: on
line diff
--- a/main/main.cpp Fri Oct 08 13:31:00 2010 +0100 +++ b/main/main.cpp Mon Oct 18 13:44:25 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");