diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-04 22:20:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:08 +0200 |
commit | 4726339f4c51d1a4a3b628370e809e2a242d59b6 (patch) | |
tree | 0716b67676a6193d388041a5fe87d46f62a41919 /gtk2_ardour/gain_meter.cc | |
parent | 8574be424e4e00c5fd5eac7680cad9a401402937 (diff) |
meter metrics tick rendering (offset by meter-border)
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r-- | gtk2_ardour/gain_meter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index bdf70f3ba6..c1a2b3e0dc 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -1064,7 +1064,7 @@ GainMeter::render_metrics (Gtk::Widget& w, vector<DataType> types) break; } - gint const pos = height - (gint) floor (height * fraction); + gint const pos = 1 + height - (gint) floor (height * fraction); float const linepos = min((float) height, (float)(pos + .5f)); cairo_set_line_width (cr, 1.0); |