Просмотр исходного кода

Merge tetris from https://github.com/xMasterX/all-the-plugins

# Conflicts:
#	tetris/tetris_game.c
Willy-JL 1 год назад
Родитель
Сommit
70139865ee
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tetris/tetris_game.c

+ 2 - 2
tetris/tetris_game.c

@@ -232,8 +232,8 @@ static void tetris_game_render_callback(Canvas* const canvas, void* ctx) {
 }
 
 static void tetris_game_input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     TetrisEvent event = {.type = EventTypeKey, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
@@ -386,8 +386,8 @@ static bool tetris_game_piece_at_bottom(TetrisState* tetris_state, Piece* newPie
 }
 
 static void tetris_game_update_timer_callback(void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     TetrisEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);