From b1cbd4faa6062c35adf4ee49e282a8469cce65e4 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 27 May 2012 19:53:02 -0700 Subject: [PATCH] Timeline: Improve the appearance of measure lines. --- timeline/src/Timeline.C | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/timeline/src/Timeline.C b/timeline/src/Timeline.C index ee1430d..342f709 100644 --- a/timeline/src/Timeline.C +++ b/timeline/src/Timeline.C @@ -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(); -- 2.11.4.GIT