Skip to content

Commit ed1e7f0

Browse files
Merge pull request #3295 from verilog-to-routing/temp_fix_graphics_sa_update
Bugfix: Update graphics after each SA outer loop iteration
2 parents 0741b49 + 2f36620 commit ed1e7f0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

vpr/src/draw/draw.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ static void draw_main_canvas(ezgl::renderer* g) {
242242
}
243243

244244
static void on_stage_change_setup(ezgl::application* app, bool is_new_window) {
245-
246245
// default setup for new window
247246
if (is_new_window) {
248247
basic_button_setup(app);
@@ -271,10 +270,6 @@ static void on_stage_change_setup(ezgl::application* app, bool is_new_window) {
271270
hide_crit_path_routing(app);
272271

273272
hide_draw_routing(app);
274-
275-
app->update_message(draw_state->default_message);
276-
app->refresh_drawing();
277-
app->flush_drawing();
278273
}
279274

280275
#endif //NO_GRAPHICS
@@ -338,6 +333,12 @@ void update_screen(ScreenUpdatePriority priority, const char* msg, enum pic_type
338333
}
339334
}
340335

336+
if (draw_state->show_graphics) {
337+
application.update_message(msg);
338+
application.refresh_drawing();
339+
application.flush_drawing();
340+
}
341+
341342
if (draw_state->save_graphics) {
342343
std::string extension = "pdf";
343344
save_graphics(extension, draw_state->save_graphics_file_base);

0 commit comments

Comments
 (0)