diff --git a/source/core.adb b/source/core.adb index 29066e9..0336b62 100644 --- a/source/core.adb +++ b/source/core.adb @@ -281,19 +281,18 @@ package body core is for step in 0 .. repeat.y loop if step mod 2 = 1 then - for next in 0 .. repeat.x + for next in 0 .. repeat.x - 1 loop line ((x + offset.x + base / 2 + next * base, y + offset.y + step * base + base / 4), (-base / 2, -base / 2)); line ((x + offset.x + base / 2 + next * base, y + offset.y + step * base + base / 4), ( base / 2, -base / 2)); end loop; else - for next in 0 .. repeat.x + for next in 0 .. repeat.x - 1 loop - line ((x + offset.x + base + next * base, y + offset.y + step * base + base / 4), (-base / 2, -base / 2)); - line ((x + offset.x + base + next * base, y + offset.y + step * base + base / 4), ( base / 2, -base / 2)); + line ((x + offset.x + base / 2 + next * base, y + offset.y + step * base - base / 4), (-base / 2, base / 2)); + line ((x + offset.x + base / 2 + next * base, y + offset.y + step * base - base / 4), ( base / 2, base / 2)); end loop; end if; - --~line ((x + offset.x + 3 * base / 2, y + offset.y + next * base + base / 4), (-base / 2, -base / 2)); end loop; -- if repeat.y mod 4 = 1 then diff --git a/source/main.adb b/source/main.adb index f1e66f4..bd6ea09 100644 --- a/source/main.adb +++ b/source/main.adb @@ -98,7 +98,7 @@ begin --~end loop; -- core.draw_central_grid (preview_x, preview_y, preview_width - 2 * preview_x, preview_height - 2 * preview_y); - --~core.draw_squared_grid (preview_x, preview_y, preview_width - 2 * preview_x, preview_height - 2 * preview_y); + core.draw_squared_grid (preview_x, preview_y, preview_width - 2 * preview_x, preview_height - 2 * preview_y); core.draw_hexagon_grid (preview_x, preview_y, preview_width - 2 * preview_x, preview_height - 2 * preview_y); -- --~ui.draw_menu (0, 0, preview_width, preview_height, false);