Browse Source

Timeline/Track: Avoid unnecessary drawing of occluded track box.

tags/non-daw-v1.1.0
Jonathan Moore Liles 13 years ago
parent
commit
5aff30fef6
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      timeline/src/Track.C
  2. +3
    -0
      timeline/src/Track.H

+ 3
- 1
timeline/src/Track.C View File

@@ -127,10 +127,12 @@ Track::init ( void )
Fl_Group::size( timeline->w(), height() );

Track *o = this;
o->box( FL_THIN_UP_BOX );
o->box( FL_NO_BOX );

{
Fl_Group *o = new Fl_Group( 0, 0, 149, 70 );
o->color( ( Fl_Color ) 53 );
o->box( FL_THIN_UP_BOX );

{
Fl_Input *o = name_field = new Fl_Sometimes_Input( 2, 2, 144, 24 );


+ 3
- 0
timeline/src/Track.H View File

@@ -74,6 +74,9 @@ public:
Audio_Region *region;
};

Fl_Color color ( void ) const { return child(0)->color(); }
void color ( Fl_Color c ) { child(0)->color( c ); }

private:

static int _soloing;


Loading…
Cancel
Save