mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix some erroneous resizing of port matrices.
git-svn-id: svn://localhost/ardour2/branches/3.0@7506 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4e8d402fd2
commit
d69e177076
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue