Browse Source

Timeline: Improve the appearance of measure lines.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
b1cbd4faa6
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      timeline/src/Timeline.C

+ 4
- 6
timeline/src/Timeline.C 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();



Loading…
Cancel
Save