diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-01-13 23:12:28 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-01-13 23:12:28 -0500 |
commit | 958daa925e71d8a4f256fc2d121326c01e62b344 (patch) | |
tree | 7d5db8011f94434f57296a589068bcda1692a55d | |
parent | 91c7e333d70f47a492ce8cdb10e6592f4c684d44 (diff) | |
download | rockbox-958daa925e.tar.gz rockbox-958daa925e.zip |
[BUGFix] ClipPlus move picker below yellow screen split
Sansa Clip and Clip+ have a split monochrome screen
some versions have a dead line of pixels
having text split at this line makes it hard to read
move text picker below this split on these devices
Change-Id: I1ebcb4c4c7b1ea950f38e35fed06ed85437a657f
-rw-r--r-- | apps/recorder/keyboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index f64061d303..736e9738c8 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -176,7 +176,11 @@ static void keyboard_layout(struct viewport *kbd_vp, vp = &kbd_vp[eKBD_VP_MENU]; int menu_w = 0;//pm->font_w * MENU_CHARS; /* NOT IMPLEMENTED */ vp->x = 0; /* LEFT */ +#ifdef HAVE_LCD_SPLIT + vp->y = MAX(LCD_SPLIT_POS, text_height); /* Sansa Clip/Clip+ */ +#else vp->y = text_height; /* TOP */ +#endif vp->width = menu_w; vp->height = 0; vp->font = pm->curfont; @@ -185,7 +189,11 @@ static void keyboard_layout(struct viewport *kbd_vp, /* PICKER */ vp = &kbd_vp[eKBD_VP_PICKER]; vp->x = menu_w; /* LEFT */ +#ifdef HAVE_LCD_SPLIT + vp->y = MAX(LCD_SPLIT_POS, text_height - 2); /* Sansa Clip/Clip+ */ +#else vp->y = text_height - 2; /* TOP */ +#endif vp->width = sc_w - menu_w; vp->height = sc_h - vp->y; /* (MAX SIZE) - OVERWRITTEN */ vp->font = pm->curfont; |