0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

fix missing display details

This commit is contained in:
OneOfEleven
2023-11-02 21:44:53 +00:00
parent 3681674b09
commit 98a4cd9483
20 changed files with 401 additions and 444 deletions

View File

@ -84,7 +84,8 @@ void UI_PrintString(const char *str, unsigned int x, const unsigned int end, con
x += ofs;
}
for (i = 0; i < length && (x + width) <= LCD_WIDTH; i++, x += width)
// for (i = 0; i < length && (x + width) <= LCD_WIDTH; i++, x += width)
for (i = 0; i < length; i++, x += width)
{
const int c = (int)str[i] - ' ';
if (c >= 0 && c < (int)font_size)
@ -117,6 +118,7 @@ static void UI_print_string(
}
for (i = 0; i < length && (x + char_width) <= LCD_WIDTH; i++, x += char_pitch)
// for (i = 0; i < length; i++, x += char_pitch)
{
const int c = (int)str[i] - ' ';
if (c >= 0 && c < (int)font_size)