make waveforms centered when height hits NAME_HIGHLIGHT_THRESHOLD
git-svn-id: svn://localhost/ardour2/trunk@678 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -518,7 +518,7 @@ AudioRegionView::set_height (gdouble height)
|
||||
for (uint32_t n=0; n < wcnt; ++n) {
|
||||
gdouble ht;
|
||||
|
||||
if ((height) < NAME_HIGHLIGHT_THRESH) {
|
||||
if ((height) <= NAME_HIGHLIGHT_THRESH) {
|
||||
ht = ((height-2*wcnt) / (double) wcnt);
|
||||
} else {
|
||||
ht = (((height-2*wcnt) - NAME_HIGHLIGHT_SIZE) / (double) wcnt);
|
||||
|
||||
@@ -948,6 +948,8 @@ TimeAxisView::compute_controls_size_info ()
|
||||
|
||||
hSmaller = req.height + extra_height;
|
||||
|
||||
cerr << "hSmaller = " << hSmaller << endl;
|
||||
|
||||
window.remove ();
|
||||
window.add (two_row_table);
|
||||
|
||||
|
||||
@@ -93,6 +93,8 @@ TimeAxisViewItem::TimeAxisViewItem(const string & it_name, ArdourCanvas::Group&
|
||||
NAME_HIGHLIGHT_SIZE = height + 6;
|
||||
NAME_HIGHLIGHT_THRESH = NAME_HIGHLIGHT_SIZE * 2;
|
||||
|
||||
cerr << "name highlight threshold = " << NAME_HIGHLIGHT_THRESH << endl;
|
||||
|
||||
have_name_font = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user