Timeline: Work around bug in FLTK 1.3 when drawing a string containing only symbols.
This commit is contained in:
parent
5fbdd940be
commit
ccc93d2388
|
@ -41,6 +41,9 @@ using std::max;
|
|||
|
||||
|
||||
|
||||
/* defined in timeline.C */
|
||||
extern void draw_full_arrow_symbol ( Fl_Color color );
|
||||
|
||||
extern Timeline *timeline;
|
||||
|
||||
bool Audio_Region::inherit_track_color = true;
|
||||
|
@ -551,11 +554,16 @@ Audio_Region::draw ( void )
|
|||
const int x = timeline->ts_to_x( _loop - offset );
|
||||
|
||||
/* FIXME: is there no way to draw these symbols direclty? */
|
||||
fl_font( FL_SYMBOL, 14 );
|
||||
fl_color( FL_WHITE );
|
||||
fl_draw( "@2>", X + x - 7, y(), 14, 14, (Fl_Align)(FL_ALIGN_LEFT | FL_ALIGN_BOTTOM), 0, 1 );
|
||||
fl_color( FL_WHITE );
|
||||
fl_draw( "@2<", X + x - 7, y() + h() - 14, 14, 14, (Fl_Align)(FL_ALIGN_LEFT | FL_ALIGN_BOTTOM), 0, 1 );
|
||||
|
||||
fl_push_matrix();
|
||||
|
||||
fl_translate( X + x + 2, y() + h() - 14 );
|
||||
fl_scale( - 16, 8 );
|
||||
|
||||
draw_full_arrow_symbol( FL_BLACK );
|
||||
|
||||
fl_pop_matrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ pack_visible_height ( const Fl_Pack *p )
|
|||
#define BL fl_begin_line()
|
||||
#define EL fl_end_line()
|
||||
|
||||
static void
|
||||
void
|
||||
draw_full_arrow_symbol ( Fl_Color color )
|
||||
{
|
||||
/* draw cap */
|
||||
|
|
Loading…
Reference in New Issue