mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
Make peak bar always fit the area of the meter
git-svn-id: svn://localhost/ardour2/trunk@608 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e509ef5c06
commit
8e8b920fa6
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue