From b76a2161a1ce9afe21ef575b298ad0410a60bb72 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 31 Dec 2024 16:01:32 +0100 Subject: [PATCH] fix(core): fix terminal background for unaligned display size [no changelog] --- core/embed/gfx/terminal.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/embed/gfx/terminal.c b/core/embed/gfx/terminal.c index eef390cafa..4de471bb0f 100644 --- a/core/embed/gfx/terminal.c +++ b/core/embed/gfx/terminal.c @@ -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(); }