world clock: support longer cities on custom LCD

This commit is contained in:
Joey Castillo
2025-03-15 15:20:22 -04:00
parent ecc633fab4
commit 7d129ba6c3
5 changed files with 143 additions and 30 deletions

View File

@@ -218,7 +218,8 @@ void watch_display_text(watch_position_t location, const char *string) {
watch_display_string(string, 0);
#pragma GCC diagnostic pop
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CUSTOM) {
watch_display_character(' ', 10);
if (strlen(string) >= 11) watch_display_character(string[10], 10);
else watch_display_character(' ', 10);
}
}
}