[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
This commit is contained in:
William Wilgus 2023-11-24 16:17:33 -05:00
parent cb3b5397b3
commit b6ce98c55c
2 changed files with 13 additions and 14 deletions

View file

@ -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) {