Skip to content

Commit 8fecbba

Browse files
committed
fix drawing contour style in draw_crit_path_elements
1 parent b541e47 commit 8fecbba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,8 @@ void draw_crit_path(ezgl::renderer* g) {
10941094
void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const std::map<std::size_t, std::set<std::size_t>>& indexes, bool draw_crit_path_contour, ezgl::renderer* g) {
10951095
t_draw_state* draw_state = get_draw_state_vars();
10961096
const ezgl::color contour_color{0, 0, 0, 40};
1097+
const ezgl::line_dash contour_line_style{ezgl::line_dash::none};
1098+
const int contour_line_width{1};
10971099

10981100
auto draw_flyline_timing_edge_helper_fn = [](ezgl::renderer* renderer, const ezgl::color& color, ezgl::line_dash line_style, int line_width, float delay,
10991101
const tatum::NodeId& prev_node, const tatum::NodeId& node, bool skip_draw_delays = false) {
@@ -1134,7 +1136,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11341136
if (draw_current_element) {
11351137
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::none, /*line_width*/ 4, delay, prev_node, node);
11361138
} else if (draw_crit_path_contour) {
1137-
draw_flyline_timing_edge_helper_fn(g, contour_color, ezgl::line_dash::none, /*line_width*/ 1, delay, prev_node, node, /*skip_draw_delays*/ true);
1139+
draw_flyline_timing_edge_helper_fn(g, contour_color, contour_line_style, contour_line_width, delay, prev_node, node, /*skip_draw_delays*/true);
11381140
}
11391141
} else {
11401142
VTR_ASSERT(draw_state->show_crit_path != DRAW_NO_CRIT_PATH);
@@ -1145,7 +1147,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11451147

11461148
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::asymmetric_5_3, /*line_width*/ 3, delay, prev_node, node);
11471149
} else if (draw_crit_path_contour) {
1148-
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::asymmetric_5_3, /*line_width*/ 3, delay, prev_node, node, /*skip_draw_delays*/ true);
1150+
draw_flyline_timing_edge_helper_fn(g, contour_color, contour_line_style, contour_line_width, delay, prev_node, node, /*skip_draw_delays*/true);
11491151
}
11501152
}
11511153
}

0 commit comments

Comments
 (0)