Timeline: Improve the appearance of measure lines.

pull/3/head
Jonathan Moore Liles 2012-05-27 19:53:02 -07:00
parent d7fc792839
commit b1cbd4faa6
1 changed files with 4 additions and 6 deletions

View File

@ -692,16 +692,14 @@ Timeline::x_to_offset ( int x ) const
/** draws a single measure line */
static void
draw_measure_cb ( nframes_t frame, const BBT &bbt, void *arg )
draw_measure_cb ( nframes_t frame, const BBT &bbt, void * )
{
Fl_Color *color = (Fl_Color*)arg;
Fl_Color c = fl_color_average( FL_LIGHT3, FL_RED, 0.50 );
Fl_Color c = FL_LIGHT3;
if ( bbt.beat )
c = FL_LIGHT3;
c = FL_DARK1;
fl_color( fl_color_add_alpha( c, 48 ) );
fl_color( fl_color_add_alpha( c, 64 ) );
const int x = timeline->ts_to_x( frame - timeline->xoffset ) + Track::width();