summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-15 22:31:13 +0000
committerDavid Robillard <d@drobilla.net>2006-06-15 22:31:13 +0000
commite13e84677a9213fb54d641483a7fcf5ecf2feb0d (patch)
treee4462e8a8e14f15575ff5cbfbfa7cf42b14c00fc /libs/gtkmm2ext
parentb5db1f624d347c8865c27fdae23bf4595be372d2 (diff)
Merged with trunk revision 610
git-svn-id: svn://localhost/ardour2/branches/midi@611 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/fastmeter.cc3
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);
}