Merged with trunk revision 610
[ardour.git] / libs / gtkmm2ext / fastmeter.cc
index f0ee0ddea18159d513ca0b0f9fdab1d412ecac0a..3c489e08ffbcbb6f3500555b6103afbe4cc28d36 100644 (file)
@@ -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);
        }