Skip to content

Commit e8bbd6b

Browse files
committed
vpr: add flag inside free_draw_structs, test on both machines
1 parent 2768b30 commit e8bbd6b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

vpr/src/draw/draw.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ void alloc_draw_structs(const t_arch* arch) {
702702
#endif // NO_GRAPHICS
703703
}
704704

705-
#ifndef NO_GRAPHICS
706705
void free_draw_structs() {
706+
#ifndef NO_GRAPHICS
707707
/* Free everything allocated by alloc_draw_structs. Called after close_graphics() *
708708
* in vpr_api.c.
709709
*
@@ -723,9 +723,11 @@ void free_draw_structs() {
723723
free(draw_state->draw_rr_node);
724724
draw_state->draw_rr_node = nullptr;
725725
}
726+
#else
727+
;
728+
#endif /* NO_GRAPHICS */
726729
}
727730

728-
#endif /* NO_GRAPHICS */
729731

730732
void init_draw_coords(float width_val) {
731733
#ifndef NO_GRAPHICS

vpr/src/draw/draw.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ void update_screen(ScreenUpdatePriority priority, const char* msg, enum pic_type
2727
void init_draw_coords(float clb_width);
2828
void init_graphics_state(bool show_graphics_val, int gr_automode_val, enum e_route_type route_type);
2929
void alloc_draw_structs(const t_arch* arch);
30+
void free_draw_structs();
3031

3132
#ifndef NO_GRAPHICS
3233

33-
void free_draw_structs();
34-
3534
void draw_get_rr_pin_coords(int inode, float* xcen, float* ycen);
3635
void draw_get_rr_pin_coords(const t_rr_node* node, float* xcen, float* ycen);
3736

0 commit comments

Comments
 (0)