Skip to content

Commit ad71977

Browse files
committed
[ap draw] revert removed a file scope varaible, added it back
1 parent b53c858 commit ad71977

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
@@ -523,8 +523,8 @@ void set_initial_world() {
523523
t_draw_coords* draw_coords = get_draw_coords_vars();
524524
const DeviceContext& device_ctx = g_vpr_ctx.device();
525525

526-
float draw_width = draw_coords->tile_x[grid.width() - 1] + draw_coords->get_tile_width();
527-
float draw_height = draw_coords->tile_y[grid.height() - 1] + draw_coords->get_tile_width();
526+
float draw_width = draw_coords->tile_x[device_ctx.grid.width() - 1] + draw_coords->get_tile_width();
527+
float draw_height = draw_coords->tile_y[device_ctx.grid.height() - 1] + draw_coords->get_tile_width();
528528

529529
initial_world = ezgl::rectangle(
530530
{-VISIBLE_MARGIN * draw_width, -VISIBLE_MARGIN * draw_height},

0 commit comments

Comments
 (0)