X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmeter_patterns.cc;h=55eb16246a532e5fcc2e4d66de8614827adceee6;hb=9204b2837ebbaa771d318cadf5cb2ea4d35e9fef;hp=7db2924697757de4c73d2fa6efd8a4eecf14ca44;hpb=52003be3695ab703b936163d7284e208790d5363;p=ardour.git diff --git a/gtk2_ardour/meter_patterns.cc b/gtk2_ardour/meter_patterns.cc index 7db2924697..55eb16246a 100644 --- a/gtk2_ardour/meter_patterns.cc +++ b/gtk2_ardour/meter_patterns.cc @@ -31,6 +31,7 @@ #include "i18n.h" using namespace ARDOUR; +using namespace ARDOUR_UI_UTILS; using namespace PBD; using namespace Gtk; using namespace Gtkmm2ext; @@ -613,7 +614,7 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector types) Pango::AttrFontDesc* font_attr; Pango::FontDescription font; - font = Pango::FontDescription ("ArdourMono"); + font = Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_SmallMonospaceFont()); double fixfontsize = 81920.0 / (double) ARDOUR::Config->get_font_scale(); font.set_weight (Pango::WEIGHT_NORMAL); @@ -885,7 +886,7 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector types) case DataType::MIDI: align_center = false; // don't bleed into legend fraction = (j->first) / 127.0; - pos = 1 + height - (gint) rintf (height * fraction); + pos = 1 + height - (gint) lrintf (height * fraction); pos = min (pos, height); cairo_set_source_rgb (cr, c.get_red_p(), c.get_green_p(), c.get_blue_p()); if (tickleft) {