Skip to content

Commit

Permalink
fix data type
Browse files Browse the repository at this point in the history
  • Loading branch information
panki27 committed Oct 14, 2022
1 parent cf138cd commit bb6e54c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion minesweeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
furi_string_printf(timeStr, "%01d:%02d", minutes, seconds);
canvas_draw_str_aligned(canvas, 128, 0, AlignRight, AlignTop, furi_string_get_cstr(timeStr));

uint8_t tile_to_draw;
uint8_t* tile_to_draw;

for (int y = 0; y < PLAYFIELD_HEIGHT; y++) {
for (int x = 0; x < PLAYFIELD_WIDTH; x++) {
Expand Down Expand Up @@ -143,6 +143,10 @@ static void render_callback(Canvas* const canvas, void* ctx) {
case TileTypeMine:
tile_to_draw = tile_mine_bits;
break;
default:
// this should never happen
tile_to_draw = tile_mine_bits;
break;
}
canvas_draw_xbm(
canvas,
Expand Down

0 comments on commit bb6e54c

Please sign in to comment.