summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2023-01-13 22:46:15 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2023-01-13 22:46:25 -0500
commit91c7e333d70f47a492ce8cdb10e6592f4c684d44 (patch)
treea3a920b64024b7c89d3383f06b9cdccdeb690202
parent255a34c6858b65f42f83675522219651fa567154 (diff)
downloadrockbox-91c7e333d70f47a492ce8cdb10e6592f4c684d44.tar.gz
rockbox-91c7e333d70f47a492ce8cdb10e6592f4c684d44.zip
Revert "keyboard.c make editline respect current UI font"
This reverts commit ebebef556652bd271000727484b72e19970477e1. Reason for revert: I don't want to get too deep into this till I come back to the keyboard rewrite (hopefully) Change-Id: Ia273f1a19a042be2dd0f1ee46690c03f2865cd95
-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 6c9b899e5a..f64061d303 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -169,7 +169,7 @@ static void keyboard_layout(struct viewport *kbd_vp,
169 vp->y = 0; /* TOP */ 169 vp->y = 0; /* TOP */
170 vp->width = sc_w; 170 vp->width = sc_w;
171 vp->height = text_height; 171 vp->height = text_height;
172 vp->font = sc->getuifont();//pm->curfont; 172 vp->font = pm->curfont;
173 text_height += vp->x + 3; 173 text_height += vp->x + 3;
174 174
175 /* MENU */ 175 /* MENU */
@@ -1052,7 +1052,7 @@ static void kbd_draw_edit_line(struct keyboard_parameters *pm,
1052 sc->hline(0, sc_w - 1, y); 1052 sc->hline(0, sc_w - 1, y);
1053#endif 1053#endif
1054 /* write out the text */ 1054 /* write out the text */
1055 sc->setfont(vp->font); //pm->curfont 1055 sc->setfont(pm->curfont);
1056 1056
1057 pm->leftpos = MAX(0, MIN(state->len_utf8, state->editpos + 2) 1057 pm->leftpos = MAX(0, MIN(state->len_utf8, state->editpos + 2)
1058 - pm->max_chars_text); 1058 - pm->max_chars_text);