We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53c858 commit ad71977Copy full SHA for ad71977
vpr/src/draw/draw.cpp
@@ -523,8 +523,8 @@ void set_initial_world() {
523
t_draw_coords* draw_coords = get_draw_coords_vars();
524
const DeviceContext& device_ctx = g_vpr_ctx.device();
525
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();
+ float draw_width = draw_coords->tile_x[device_ctx.grid.width() - 1] + draw_coords->get_tile_width();
+ float draw_height = draw_coords->tile_y[device_ctx.grid.height() - 1] + draw_coords->get_tile_width();
528
529
initial_world = ezgl::rectangle(
530
{-VISIBLE_MARGIN * draw_width, -VISIBLE_MARGIN * draw_height},
0 commit comments