Skip to content

Commit 7eddb5c

Browse files
committed
[draw ap] fixed no graphic macro range
1 parent 66cfb31 commit 7eddb5c

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
@@ -505,6 +505,8 @@ void init_draw_coords(float clb_width, const BlkLocRegistry& blk_loc_registry) {
505505
#endif /* NO_GRAPHICS */
506506
}
507507

508+
#ifndef NO_GRAPHICS
509+
508510
void set_initial_world() {
509511
constexpr float VISIBLE_MARGIN = 0.01;
510512
t_draw_coords* draw_coords = get_draw_coords_vars();
@@ -537,8 +539,6 @@ void set_initial_world_ap() {
537539
{(1.f + VISIBLE_MARGIN) * draw_width, (1.f + VISIBLE_MARGIN) * draw_height});
538540
}
539541

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

0 commit comments

Comments
 (0)