13
0

fix midi-bypass drawing.

This commit is contained in:
Robin Gareus 2016-04-19 17:31:00 +02:00
parent 27335a2034
commit c9dedc567d

View File

@ -1421,9 +1421,11 @@ ProcessorEntry::RoutingIcon::expose_output_map (cairo_t* cr, const double width,
_i_in_map.get_src (dt, idx, &valid_sink);
_i_thru_map.get_src (dt, idx, &valid_thru);
if (!valid_thru && !valid_sink) {
if (!is_midi || i != 0) { // special case midi-bypass
continue;
}
}
}
double c_x0 = pin_x_pos (i, width, pc_out, 0, false);
double c_x1 = pin_x_pos (idx, width, n_out, n_out_midi, is_midi);
draw_connection (cr, c_x0, c_x1, 0, ht, is_midi);
@ -1443,9 +1445,11 @@ ProcessorEntry::RoutingIcon::expose_output_map (cairo_t* cr, const double width,
_i_in_map.get_src (dt, pn, &valid_sink);
_i_thru_map.get_src (dt, pn, &valid_thru_f);
if (!valid_thru_f && !valid_sink) {
if (!is_midi || i != 0) { // special case midi-bypass
continue;
}
}
}
bool valid_src;
_out_map.get_src (dt, pn, &valid_src);