1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 07:20:56 +00:00

fix(core): fix terminal background for unaligned display size

[no changelog]
This commit is contained in:
tychovrahe 2024-12-31 16:01:32 +01:00 committed by TychoVrahe
parent 973d4ab2b2
commit b76a2161a1

View File

@ -131,6 +131,13 @@ void term_print(const char *text, int textlen) {
}
term_redraw_rows(0, TERMINAL_ROWS);
// redraw residual area of the display
gfx_draw_bar(gfx_rect(0, TERMINAL_ROWS * 8, DISPLAY_RESX, DISPLAY_RESY),
terminal_bgcolor);
gfx_draw_bar(gfx_rect(TERMINAL_COLS * 6, 0, DISPLAY_RESX, DISPLAY_RESY),
terminal_bgcolor);
display_refresh();
}