Skip to content

Commit 3c0381b

Browse files
committed
[draw ap] fixed no graphic macro range
1 parent 7f6933a commit 3c0381b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/draw/draw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ void init_draw_coords(float clb_width, const BlkLocRegistry& blk_loc_registry) {
506506
#endif /* NO_GRAPHICS */
507507
}
508508

509+
#ifndef NO_GRAPHICS
510+
509511
void set_initial_world() {
510512
constexpr float VISIBLE_MARGIN = 0.01;
511513
t_draw_coords* draw_coords = get_draw_coords_vars();
@@ -538,8 +540,6 @@ void set_initial_world_ap() {
538540
{(1.f + VISIBLE_MARGIN) * draw_width, (1.f + VISIBLE_MARGIN) * draw_height});
539541
}
540542

541-
#ifndef NO_GRAPHICS
542-
543543
int get_track_num(int inode, const vtr::OffsetMatrix<int>& chanx_track, const vtr::OffsetMatrix<int>& chany_track) {
544544
/* Returns the track number of this routing resource node. */
545545

0 commit comments

Comments
 (0)