Browse Source

Small hack to fix one-pixel size difference when there are no annotation tracks.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
f9d93f4307
2 changed files with 9 additions and 6 deletions
  1. +0
    -3
      Timeline/Timeline.C
  2. +9
    -3
      Timeline/Track.C

+ 0
- 3
Timeline/Timeline.C View File

@@ -487,9 +487,6 @@ Timeline::resize ( int X, int Y, int W, int H )
void
Timeline::draw ( void )
{
if ( ! visible_r() )
return;

int X, Y, W, H;

int bdx = 0;


+ 9
- 3
Timeline/Track.C View File

@@ -207,17 +207,17 @@ Track::init ( void )
resizable( o );

{
Fl_Pack *o = annotation = new Fl_Pack( width(), 0, pack->w(), 115 );
Fl_Pack *o = annotation = new Fl_Pack( width(), 0, pack->w(), 0 );
o->end();
}

{
Fl_Pack *o = control = new Fl_Pack( width(), 0, pack->w(), 115 );
Fl_Pack *o = control = new Fl_Pack( width(), 0, pack->w(), 0 );
o->end();
}

{
Fl_Pack *o = takes = new Fl_Pack( width(), 0, pack->w(), 115 );
Fl_Pack *o = takes = new Fl_Pack( width(), 0, pack->w(), 0 );
o->end();
o->hide();
}
@@ -279,6 +279,12 @@ Track::resize ( void )
for ( int i = control->children(); i--; )
control->child( i )->size( w(), height() );

/* FIXME: hack! */
if ( annotation->children() )
annotation->show();
else
annotation->hide();

if ( _show_all_takes )
{
takes->show();


Loading…
Cancel
Save