🎨 Apply F() to UTF-8/MMU2 string put
This commit is contained in:
@ -105,9 +105,9 @@ int lcd_put_wchar_max(wchar_t c, pixel_len_t max_length) {
|
||||
return tft_string.width();
|
||||
}
|
||||
|
||||
int lcd_put_u8str_max_P(PGM_P utf8_str_P, pixel_len_t max_length) {
|
||||
int lcd_put_u8str_max_P(PGM_P utf8_pstr, pixel_len_t max_length) {
|
||||
if (max_length < 1) return 0;
|
||||
tft_string.set(utf8_str_P);
|
||||
tft_string.set(utf8_pstr);
|
||||
tft_string.trim();
|
||||
tft_string.truncate(max_length);
|
||||
tft.add_text(MENU_TEXT_X_OFFSET, MENU_TEXT_Y_OFFSET, COLOR_MENU_TEXT, tft_string);
|
||||
|
Reference in New Issue
Block a user