Draw control points with a polygon.
This commit is contained in:
parent
65e251360f
commit
394d079706
|
@ -154,6 +154,7 @@ public:
|
||||||
_y = (float)Y / parent()->h();
|
_y = (float)Y / parent()->h();
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
track()->sort();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,12 +53,32 @@ public:
|
||||||
|
|
||||||
fl_color( selection_color() );
|
fl_color( selection_color() );
|
||||||
|
|
||||||
fl_begin_line();
|
fl_begin_complex_polygon();
|
||||||
|
|
||||||
|
list <Track_Widget *>::const_iterator e = _widgets.end();
|
||||||
|
e--;
|
||||||
|
|
||||||
|
if ( _widgets.size() )
|
||||||
|
for ( list <Track_Widget *>::const_iterator r = _widgets.begin(); ; r++ )
|
||||||
|
{
|
||||||
|
if ( r == _widgets.begin() )
|
||||||
|
{
|
||||||
|
fl_vertex( x(), y() + h() );
|
||||||
|
fl_vertex( x(), (*r)->y() );
|
||||||
|
}
|
||||||
|
|
||||||
for ( list <Track_Widget *>::const_iterator r = _widgets.begin(); r != _widgets.end(); r++ )
|
|
||||||
fl_vertex( (*r)->x(), (*r)->y() );
|
fl_vertex( (*r)->x(), (*r)->y() );
|
||||||
|
|
||||||
fl_end_line();
|
if ( r == e )
|
||||||
|
{
|
||||||
|
fl_vertex( x() + w(), (*r)->y() );
|
||||||
|
fl_vertex( x() + w(), y() + h() );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
fl_end_complex_polygon();
|
||||||
|
|
||||||
fl_line_style( FL_SOLID, 0 );
|
fl_line_style( FL_SOLID, 0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue