Text fixes for classic display
This commit is contained in:
@@ -251,6 +251,7 @@ static void display_bust(void) {
|
|||||||
|
|
||||||
static void display_title(void) {
|
static void display_title(void) {
|
||||||
game_state = BJ_TITLE_SCREEN;
|
game_state = BJ_TITLE_SCREEN;
|
||||||
|
watch_display_text(WATCH_POSITION_TOP_RIGHT, " ");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP, "BLACK ", "21");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP, "BLACK ", "21");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, " JACK ", "BLaKJK");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, " JACK ", "BLaKJK");
|
||||||
}
|
}
|
||||||
@@ -262,6 +263,7 @@ static void display_win_ratio(blackjack_face_state_t *state) {
|
|||||||
if (state->games_played > 0) { // Avoid dividing by zero
|
if (state->games_played > 0) { // Avoid dividing by zero
|
||||||
win_ratio = (uint8_t)(100 * state->games_won) / state->games_played;
|
win_ratio = (uint8_t)(100 * state->games_won) / state->games_played;
|
||||||
}
|
}
|
||||||
|
watch_display_text(WATCH_POSITION_TOP_RIGHT, " ");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP, "WINS ", "WR");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP, "WINS ", "WR");
|
||||||
sprintf(buf, "%3dPct", win_ratio);
|
sprintf(buf, "%3dPct", win_ratio);
|
||||||
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user