reduce peak-hold indicator to 2px height

This commit is contained in:
Robin Gareus 2013-07-03 01:48:10 +02:00
parent be89982841
commit a07c50ad80

View File

@ -365,7 +365,7 @@ FastMeter::vertical_expose (GdkEventExpose* ev)
last_peak_rect.x = 1;
last_peak_rect.width = pixwidth;
last_peak_rect.y = 1 + pixheight - (gint) floor (pixheight * current_peak);
last_peak_rect.height = min(3, pixheight - last_peak_rect.y);
last_peak_rect.height = min(2, pixheight - last_peak_rect.y);
cairo_set_source (cr, fgpattern->cobj());
cairo_rectangle (cr, 1, last_peak_rect.y, pixwidth, last_peak_rect.height);