Clean up display of annotation regions.

This commit is contained in:
Jonathan Moore Liles 2008-05-29 16:54:10 -05:00
parent 3d3998cccb
commit 0acc95509e
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ Sequence_Region::set ( Log_Entry &e )
void void
Sequence_Region::draw_box ( 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 void

View File

@ -258,7 +258,7 @@ Sequence_Widget::draw_label ( const char *label, Fl_Align align, Fl_Color color
if ( align & FL_ALIGN_BOTTOM ) if ( align & FL_ALIGN_BOTTOM )
fl_draw_box( b, X - dx - bx, Y + H - lh, lw + bw, lh, FL_GRAY ); 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 ); fl_draw_box( b, X - dx, Y + ((H >> 1) - (lh >> 1)), lw + bw, lh, FL_GRAY );
else if ( align & FL_ALIGN_TOP ) 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 ); fl_draw_box( b, X - dx - bx + ((W >> 1) - (lw >> 1)), Y + ((H >> 1) - (lh >> 1)), lw + bw, lh, FL_GRAY );