summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-01-13 01:35:01 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2023-01-13 01:36:45 -0500
commitebebef556652bd271000727484b72e19970477e1 (patch)
tree4bb636afe648512f3a05dd21d1b5b45e0f6b616f
parent2d9cb673e58a0b3cc2a94884983ac689ed68ebee (diff)
downloadrockbox-ebebef5566.tar.gz
rockbox-ebebef5566.zip
keyboard.c make editline respect current UI font
Change-Id: I4dc95d42544a10df8086cc58c4a305d45b56bb1b
-rw-r--r--apps/recorder/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index f64061d303..6c9b899e5a 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -169,7 +169,7 @@ static void keyboard_layout(struct viewport *kbd_vp,
vp->y = 0; /* TOP */
vp->width = sc_w;
vp->height = text_height;
- vp->font = pm->curfont;
+ vp->font = sc->getuifont();//pm->curfont;
text_height += vp->x + 3;
/* MENU */
@@ -1052,7 +1052,7 @@ static void kbd_draw_edit_line(struct keyboard_parameters *pm,
sc->hline(0, sc_w - 1, y);
#endif
/* write out the text */
- sc->setfont(pm->curfont);
+ sc->setfont(vp->font); //pm->curfont
pm->leftpos = MAX(0, MIN(state->len_utf8, state->editpos + 2)
- pm->max_chars_text);