'gtk2_ardour' - Try 'lrintf' instead of 'rintf' which isn't available in MSVC
This commit is contained in:
parent
904367748c
commit
bc2b2f9e35
@ -843,7 +843,7 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector<DataType> 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user