diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-27 02:10:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-27 02:10:12 +0000 |
commit | d69e177076aa10e19992c8f6133a8928c24c81e2 (patch) | |
tree | 473880ee7ee50bb0d3e2c2f1d09fc0276f9cfffb /gtk2_ardour/utils.cc | |
parent | 4e8d402fd2f92454c0ce1460e0030020b72c3888 (diff) |
Fix some erroneous resizing of port matrices.
git-svn-id: svn://localhost/ardour2/branches/3.0@7506 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index ac43d06e59..f9cc0739c6 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -957,8 +957,8 @@ resize_window_to_proportion_of_monitor (Gtk::Window* window, int max_width, int Gdk::Rectangle monitor_rect; screen->get_monitor_geometry (0, monitor_rect); - int const w = std::min (monitor_rect.get_width(), max_width) * 0.8; - int const h = std::min (monitor_rect.get_height(), max_height) * 0.8; + int const w = std::min (int (monitor_rect.get_width() * 0.8), max_width); + int const h = std::min (int (monitor_rect.get_height() * 0.8), max_height); window->resize (w, h); } |