Clean up display of annotation regions.
This commit is contained in:
parent
3d3998cccb
commit
0acc95509e
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue