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:
parent
973d4ab2b2
commit
b76a2161a1
@ -131,6 +131,13 @@ void term_print(const char *text, int textlen) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
term_redraw_rows(0, TERMINAL_ROWS);
|
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();
|
display_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user