diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-22 03:38:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-22 03:38:40 +0000 |
commit | 24cafcf8e6fe3d4e303125037bd9efc534e61646 (patch) | |
tree | d209408f8087bc6a0779203bb67eb764b7af7b62 /gtk2_ardour/port_matrix_column_labels.cc | |
parent | 95bd7ba71695bbe0334239751266674f9ce1a6b7 (diff) |
Some small-ish port matrix rendering improvements.
git-svn-id: svn://localhost/ardour2/branches/3.0@4430 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_column_labels.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc index 90099eb1e5..72954d1627 100644 --- a/gtk2_ardour/port_matrix_column_labels.cc +++ b/gtk2_ardour/port_matrix_column_labels.cc @@ -167,8 +167,7 @@ PortMatrixColumnLabels::render (cairo_t* cr) for (uint32_t j = 0; j < (*i)->nchannels(); ++j) { - double const lc = _longest_channel_name + (2 * name_pad()); - double const lb = _longest_bundle_name + (2 * name_pad()); + double const lc = _longest_channel_name + name_pad(); double const w = column_width(); if (_location == BOTTOM) { @@ -179,8 +178,8 @@ PortMatrixColumnLabels::render (cairo_t* cr) cairo_move_to (cr, x_, y_); x_ -= w; cairo_line_to (cr, x_, y_); - x_ -= lb * cos (angle()); - y_ += lb * sin (angle()); + x_ -= lc * cos (angle()); + y_ += lc * sin (angle()); cairo_line_to (cr, x_, y_); x_ += w * pow (sin (angle()), 2); y_ += w * sin (angle()) * cos (angle()); |