Fixed win/lose text
This commit is contained in:
parent
40d04b1158
commit
b68ec8410f
@ -321,15 +321,17 @@ static uint32_t get_day_unix_time(void) {
|
|||||||
static void display_lose(wordle_state_t *state, uint8_t subsecond) {
|
static void display_lose(wordle_state_t *state, uint8_t subsecond) {
|
||||||
char buf[10];
|
char buf[10];
|
||||||
sprintf(buf," %s", subsecond % 2 ? _valid_words[state->curr_answer] : " ");
|
sprintf(buf," %s", subsecond % 2 ? _valid_words[state->curr_answer] : " ");
|
||||||
watch_display_text(WATCH_POSITION_TOP, "L ");
|
watch_display_text(WATCH_POSITION_TOP_RIGHT, " ");
|
||||||
|
watch_display_text_with_fallback(WATCH_POSITION_TOP, "LOSE", "L ");
|
||||||
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void display_win(wordle_state_t *state, uint8_t subsecond) {
|
static void display_win(wordle_state_t *state, uint8_t subsecond) {
|
||||||
(void) state;
|
(void) state;
|
||||||
char buf[10];
|
char buf[10];
|
||||||
sprintf(buf," %s ", subsecond % 2 ? "NICE" : "JOb ");
|
sprintf(buf," %s ", subsecond % 2 ? "NICE" : "JOb ");
|
||||||
watch_display_text(WATCH_POSITION_TOP, "W ");
|
watch_display_text(WATCH_POSITION_TOP_RIGHT, " ");
|
||||||
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WIN", "W ");
|
||||||
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user