Browse Source

Mixer: Clip children when drawing modules.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
fd1207b75e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mixer/src/Module.C

+ 5
- 1
mixer/src/Module.C View File

@@ -627,7 +627,7 @@ Module::draw_box ( int tx, int ty, int tw, int th )

if ( this == Fl::focus() )
{
fl_draw_box( FL_UP_FRAME, x(), y(), w(), h(), selection_color() );
fl_draw_box( FL_UP_FRAME, tx, ty, tw, th, selection_color() );
}

if ( audio_input.size() && audio_output.size() )
@@ -644,9 +644,13 @@ Module::draw_box ( int tx, int ty, int tw, int th )
fl_draw_box( FL_ROUNDED_BOX, tx + tw - 8, ty + 4, 5, 5, is_controlling() ? FL_YELLOW : fl_inactive( FL_YELLOW ) );
}

fl_push_clip( tx + Fl::box_dx(box()), ty + Fl::box_dy(box()), tw - Fl::box_dw(box()), th - Fl::box_dh(box()) );

Fl_Group::draw_children();

fl_pop_clip();

fl_pop_clip();
}

void


Loading…
Cancel
Save