From b6ce98c55c31039fdc8189b4cbe0bb7e56eaf894 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 24 Nov 2023 16:17:33 -0500 Subject: [BugFix] yesno screen disappears sending GUI_EVENT_NEED_UI_UPDATE ensured we got redrawn but it also sometimes resulted in the yesno screen being overdrawn depending on which event callback was called last now increasing the update frequency, clear the dirty bit on whatever vp we are replacing and well as call our redraw function instead of sending UI_UPDATE also found a potential bug in get_font() Change-Id: I1da6defa6db799a4778590daa0c107aba00a9d34 --- firmware/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/font.c b/firmware/font.c index 1644201f67..baaec13d3c 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -699,7 +699,7 @@ struct font* font_get(int font) struct font* pf; if (font == FONT_UI) font = MAXFONTS-1; - if (font <= FONT_SYSFIXED) + if (font <= FONT_SYSFIXED || font >= MAXFONTS) return &sysfont; while (1) { -- cgit v1.2.3