We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb9c69 commit 168b307Copy full SHA for 168b307
vpr/src/draw/draw.cpp
@@ -2582,6 +2582,18 @@ static int draw_check_rr_node_hit(float click_x, float click_y) {
2582
}
2583
break;
2584
2585
+ case SOURCE:
2586
+ case SINK: {
2587
+ float xcen, ycen;
2588
+ draw_get_rr_src_sink_coords(device_ctx.rr_nodes[inode], &xcen, &ycen);
2589
+
2590
+ // Now check if we clicked on this pin
2591
+ if (click_x >= xcen - draw_coords->pin_size && click_x <= xcen + draw_coords->pin_size && click_y >= ycen - draw_coords->pin_size && click_y <= ycen + draw_coords->pin_size) {
2592
+ hit_node = inode;
2593
+ return hit_node;
2594
+ }
2595
+ break;
2596
2597
case CHANX:
2598
case CHANY: {
2599
bound_box = draw_get_rr_chan_bbox(inode);
0 commit comments