Przeglądaj źródła

Clear welcome message on erase

SimplyMinimal 3 lat temu
rodzic
commit
2ab2f05a51
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      etch-a-sketch.c

+ 1 - 0
etch-a-sketch.c

@@ -157,6 +157,7 @@ int32_t etch_a_sketch_app(void* p) {
         // Clear
         // Clear
         // TODO: Do animation of shaking board
         // TODO: Do animation of shaking board
         if(event.key == InputKeyBack && event.type == InputTypeLong) {
         if(event.key == InputKeyBack && event.type == InputTypeLong) {
+            etch_state->showWelcome = false;
             etch_state->board[1][1] = true;
             etch_state->board[1][1] = true;
             for(int y = 0; y < 32; y++) {
             for(int y = 0; y < 32; y++) {
                 for(int x = 0; x < 64; x++) {
                 for(int x = 0; x < 64; x++) {