|
|
@ -99,7 +99,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
|
|
|
furi_string_printf(timeStr, "%01d:%02d", minutes, seconds);
|
|
|
|
furi_string_printf(timeStr, "%01d:%02d", minutes, seconds);
|
|
|
|
canvas_draw_str_aligned(canvas, 128, 0, AlignRight, AlignTop, furi_string_get_cstr(timeStr));
|
|
|
|
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 y = 0; y < PLAYFIELD_HEIGHT; y++) {
|
|
|
|
for (int x = 0; x < PLAYFIELD_WIDTH; x++) {
|
|
|
|
for (int x = 0; x < PLAYFIELD_WIDTH; x++) {
|
|
|
@ -143,6 +143,10 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
|
|
|
case TileTypeMine:
|
|
|
|
case TileTypeMine:
|
|
|
|
tile_to_draw = tile_mine_bits;
|
|
|
|
tile_to_draw = tile_mine_bits;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
// this should never happen
|
|
|
|
|
|
|
|
tile_to_draw = tile_mine_bits;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
canvas_draw_xbm(
|
|
|
|
canvas_draw_xbm(
|
|
|
|
canvas,
|
|
|
|
canvas,
|
|
|
|