Browse Source

Fix off-by-one in sequence drawing.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
0d56c07a1d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Timeline/Control_Sequence.C
  2. +1
    -1
      Timeline/Sequence.C

+ 1
- 1
Timeline/Control_Sequence.C View File

@@ -146,7 +146,7 @@ Control_Sequence::draw ( void )
fl_push_clip( x(), y(), w(), h() );

/* draw the box with the ends cut off. */
draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ), h(), color() );
draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ) + 1, h(), color() );

const int bx = x();
const int by = y() + Fl::box_dy( box() );


+ 1
- 1
Timeline/Sequence.C View File

@@ -84,7 +84,7 @@ Sequence::draw ( void )
fl_push_clip( x(), y(), w(), h() );

/* draw the box with the ends cut off. */
draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ), h(), color() );
draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ) + 1, h(), color() );

int X, Y, W, H;



Loading…
Cancel
Save