summaryrefslogtreecommitdiff
path: root/src/gfx2d.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-09-04 19:19:47 -0700
committer3gg <3gg@shellblade.net>2025-09-04 19:19:47 -0700
commitc8fdef3b8f9b2eaab5fdccc9f8a9888d12972cc5 (patch)
tree937a81947e6ce76b8d0e55b156ed047d343467f4 /src/gfx2d.c
parent5294ea7acb86de460e2426a6dac1d281979d0c3b (diff)
Fix the checkerboard demo, which was being rendered as an orthogonal map after the recent changes.HEADmain
Diffstat (limited to 'src/gfx2d.c')
-rw-r--r--src/gfx2d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gfx2d.c b/src/gfx2d.c
index 266a5f7..f609c98 100644
--- a/src/gfx2d.c
+++ b/src/gfx2d.c
@@ -263,6 +263,8 @@ void gfx2d_make_map(Gfx2d* gfx, const MapDesc* desc) {
263 .base_tile_width = desc->tile_width, 263 .base_tile_width = desc->tile_width,
264 .base_tile_height = desc->tile_height, 264 .base_tile_height = desc->tile_height,
265 .num_layers = 1, 265 .num_layers = 1,
266 .flags =
267 (desc->orientation == MapOrthogonal) ? Tm_Orthogonal : Tm_Isometric,
266 }; 268 };
267 269
268 gfx->tileset = memstack_alloc_aligned(&gfx->stack, tileset_size_bytes, 4); 270 gfx->tileset = memstack_alloc_aligned(&gfx->stack, tileset_size_bytes, 4);