From bc2b2f9e35cc3798960b3c91c1165522ccb9bc55 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 3 Oct 2013 09:50:34 +0100 Subject: [PATCH] 'gtk2_ardour' - Try 'lrintf' instead of 'rintf' which isn't available in MSVC --- gtk2_ardour/meter_patterns.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/meter_patterns.cc b/gtk2_ardour/meter_patterns.cc index f392dc0872..4e8e19060d 100644 --- a/gtk2_ardour/meter_patterns.cc +++ b/gtk2_ardour/meter_patterns.cc @@ -843,7 +843,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) {