]> git.earman.xyz Git - sensor-watch.git/commitdiff
Text fixes for classic display
authorDavid Volovskiy <devolov@gmail.com>
Fri, 5 Sep 2025 21:07:24 +0000 (17:07 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Fri, 5 Sep 2025 21:07:24 +0000 (17:07 -0400)
watch-faces/complication/blackjack_face.c

index 9db6db88a265ce0a1daa1b016238629e780c368a..1ff1c2ed6eeefd6c30ae286284fb4c03e5254cd3 100755 (executable)
@@ -246,12 +246,13 @@ static void display_tie(void) {
 static void display_bust(void) {\r
     game_state = BJ_RESULT;\r
     add_to_games_played = true;\r
-    watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "8UST", " BUST");\r
+    watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "8UST", "BUST");\r
 }\r
 \r
 static void display_title(void) {\r
     game_state = BJ_TITLE_SCREEN;\r
-    watch_display_text_with_fallback(WATCH_POSITION_TOP, "BLACK ", "21  ");\r
+    watch_display_text(WATCH_POSITION_TOP_RIGHT, "  ");\r
+    watch_display_text_with_fallback(WATCH_POSITION_TOP, "BLACK ", "21");\r
     watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, " JACK ", "BLaKJK");\r
 }\r
 \r
@@ -262,7 +263,8 @@ static void display_win_ratio(blackjack_face_state_t *state) {
     if (state->games_played > 0) {  // Avoid dividing by zero\r
         win_ratio = (uint8_t)(100 * state->games_won) / state->games_played;\r
     }\r
-    watch_display_text_with_fallback(WATCH_POSITION_TOP, "WINS  ", "WR  ");\r
+    watch_display_text(WATCH_POSITION_TOP_RIGHT, "  ");\r
+    watch_display_text_with_fallback(WATCH_POSITION_TOP, "WINS  ", "WR");\r
     sprintf(buf, "%3dPct", win_ratio);\r
     watch_display_text(WATCH_POSITION_BOTTOM, buf);\r
 }\r