From af4444e5b96e133f0c64b931759acf5df86475ad Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 1 Apr 2013 14:58:43 +0200 Subject: Fixed/improved handling of colored wires in show command --- kernel/show.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/show.cc') diff --git a/kernel/show.cc b/kernel/show.cc index 8855c809..572ba589 100644 --- a/kernel/show.cc +++ b/kernel/show.cc @@ -182,12 +182,12 @@ struct ShowWorker label_string += stringf(" %d:%d - %d:%d |", i, pos, pos-c.width+1, c.offset+c.width-1, c.offset); net_conn_map[net].in.insert(stringf("x%d:s%d", idx, i)); net_conn_map[net].bits = c.width; - net_conn_map[net].color = nextColor(sig, net_conn_map[net].color); + net_conn_map[net].color = nextColor(c, net_conn_map[net].color); } else { label_string += stringf(" %d:%d - %d:%d |", i, c.offset+c.width-1, c.offset, pos, pos-c.width+1); net_conn_map[net].out.insert(stringf("x%d:s%d", idx, i)); net_conn_map[net].bits = c.width; - net_conn_map[net].color = nextColor(sig, net_conn_map[net].color); + net_conn_map[net].color = nextColor(c, net_conn_map[net].color); } pos -= c.width; } -- cgit v1.2.3