diff options
author | Sampo Savolainen <v2@iki.fi> | 2006-06-15 20:56:46 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2006-06-15 20:56:46 +0000 |
commit | 8e8b920fa68f26cee60c3df27d0899bb63cb1fc1 (patch) | |
tree | dc3b4f041ef207b8d85b6e9f242697892c5a63bd | |
parent | e509ef5c06179be111fbd96dd86cdaa5d5c1f098 (diff) |
Make peak bar always fit the area of the meter
git-svn-id: svn://localhost/ardour2/trunk@608 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/gtkmm2ext/fastmeter.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index f0ee0ddea1..3c489e08ff 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -354,11 +354,12 @@ FastMeter::vertical_expose (GdkEventExpose* ev) // draw peak bar if (hold_state && intersection.width > 0) { gint y = pixheight - (gint) floor (pixheight * current_peak); + int h = min(3, pixheight - y); get_window()->draw_pixbuf (get_style()->get_fg_gc(get_state()), pixbuf, intersection.x, y, intersection.x, y, - intersection.width, 3, + intersection.width, h, Gdk::RGB_DITHER_NONE, 0, 0); } |