Timeline: Tweak style of audio regions.

This commit is contained in:
Jonathan Moore Liles 2020-09-18 22:52:18 -07:00
parent 8109ff7bc0
commit 455cc0f3ad
1 changed files with 23 additions and 0 deletions

View File

@ -713,6 +713,29 @@ Audio_Region::draw ( void )
fl_line_style( FL_SOLID, 0 );
}
/* draw dog ear */
{
const int pw = 8;
/* fl_color( fl_color_add_alpha( FL_WHITE, 127 ) ); */
/* fl_color( FL_BACKGROUND_COLOR ); */
fl_color( fl_color_add_alpha( FL_WHITE, 127 ) );
fl_begin_polygon();
fl_vertex( line_x() + Fl::box_dx(box()),
y() + Fl::box_dy(box()) );
fl_vertex( pw + line_x() + Fl::box_dx(box()),
y() + Fl::box_dy(box()) );
fl_vertex( line_x() + Fl::box_dx(box()),
pw + y() + Fl::box_dy(box()) );
fl_end_polygon();
}
if ( selected() )
draw_selection_frame( line_x() + Fl::box_dx(box()),
y() + Fl::box_dy(box()),