summaryrefslogtreecommitdiff
path: root/demos/checkerboard/checkerboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/checkerboard/checkerboard.c')
-rw-r--r--demos/checkerboard/checkerboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/checkerboard/checkerboard.c b/demos/checkerboard/checkerboard.c
index 467da61..f9631d8 100644
--- a/demos/checkerboard/checkerboard.c
+++ b/demos/checkerboard/checkerboard.c
@@ -86,7 +86,8 @@ static bool init(GfxApp* app, GfxAppState* state, int argc, const char** argv) {
86 .tile_height = TILE_HEIGHT, 86 .tile_height = TILE_HEIGHT,
87 .world_width = WORLD_WIDTH, 87 .world_width = WORLD_WIDTH,
88 .world_height = WORLD_HEIGHT, 88 .world_height = WORLD_HEIGHT,
89 .num_tiles = NUM_TILES}); 89 .num_tiles = NUM_TILES,
90 .orientation = MapIsometric});
90 91
91 const Tile black = gfx2d_make_tile(iso, &tile_set[Black]); 92 const Tile black = gfx2d_make_tile(iso, &tile_set[Black]);
92 const Tile white = gfx2d_make_tile(iso, &tile_set[White]); 93 const Tile white = gfx2d_make_tile(iso, &tile_set[White]);
@@ -136,7 +137,7 @@ static void render(const GfxApp* app, GfxAppState* state) {
136 137
137 Gfx2d* iso = state->gfx; 138 Gfx2d* iso = state->gfx;
138 139
139 gfx2d_render(iso); 140 gfx2d_render(iso, 0, 0);
140 141
141 if ((state->xpick != -1) && (state->ypick != -1)) { 142 if ((state->xpick != -1) && (state->ypick != -1)) {
142 gfx2d_draw_tile(iso, state->xpick, state->ypick, state->red); 143 gfx2d_draw_tile(iso, state->xpick, state->ypick, state->red);