Browse Source

Clean up display of annotation regions.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
0acc95509e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Timeline/Sequence_Region.C
  2. +1
    -1
      Timeline/Sequence_Widget.C

+ 1
- 1
Timeline/Sequence_Region.C View File

@@ -53,7 +53,7 @@ Sequence_Region::set ( Log_Entry &e )
void
Sequence_Region::draw_box ( void )
{
fl_draw_box( box(), x(), y(), w(), h(), box_color() );
fl_draw_box( box(), line_x(), y(), abs_w(), h(), box_color() );
}

void


+ 1
- 1
Timeline/Sequence_Widget.C View File

@@ -258,7 +258,7 @@ Sequence_Widget::draw_label ( const char *label, Fl_Align align, Fl_Color color

if ( align & FL_ALIGN_BOTTOM )
fl_draw_box( b, X - dx - bx, Y + H - lh, lw + bw, lh, FL_GRAY );
else if ( align == FL_ALIGN_LEFT )
else if ( align & FL_ALIGN_LEFT )
fl_draw_box( b, X - dx, Y + ((H >> 1) - (lh >> 1)), lw + bw, lh, FL_GRAY );
else if ( align & FL_ALIGN_TOP )
fl_draw_box( b, X - dx - bx + ((W >> 1) - (lw >> 1)), Y + ((H >> 1) - (lh >> 1)), lw + bw, lh, FL_GRAY );


Loading…
Cancel
Save