]> git.earman.xyz Git - sensor-watch.git/commitdiff
tarot: tweak to display of 'world' card
authorjoeycastillo <joeycastillo@utexas.edu>
Wed, 11 Jan 2023 17:49:44 +0000 (12:49 -0500)
committerjoeycastillo <joeycastillo@utexas.edu>
Wed, 11 Jan 2023 17:49:44 +0000 (12:49 -0500)
movement/watch_faces/complication/tarot_face.c

index fd8df13926bd24d46aee28b16faca22713165112..16a989d8b956800bd49debea4e9a289132fcdbd5 100644 (file)
@@ -62,7 +62,7 @@ static char *major_arcana[NUM_TAROT_CARDS] = {
     "n&OON ", // Moon
     "  Sun ",
     "Jdgmnt",
-    " World",
+    "orld",
 };
 
 static void tarot_display(tarot_state_t *state) {
@@ -73,6 +73,12 @@ static void tarot_display(tarot_state_t *state) {
         watch_display_string(buf, 3);
         sprintf(buf, "%s", major_arcana[state->drawn_cards[state->current_card]]);
         watch_display_string(buf, 4);
+        if (state->drawn_cards[state->current_card] == NUM_TAROT_CARDS - 1) {
+            // special tweak for "World"
+            watch_set_pixel(1, 20);
+            watch_set_pixel(2, 21);
+            watch_set_pixel(1, 17);
+        }
     }
 }