[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
This commit is contained in:
William Wilgus 2023-01-13 23:12:28 -05:00
parent 91c7e333d7
commit 958daa925e

View file

@ -176,7 +176,11 @@ static void keyboard_layout(struct viewport *kbd_vp,
vp = &kbd_vp[eKBD_VP_MENU]; vp = &kbd_vp[eKBD_VP_MENU];
int menu_w = 0;//pm->font_w * MENU_CHARS; /* NOT IMPLEMENTED */ int menu_w = 0;//pm->font_w * MENU_CHARS; /* NOT IMPLEMENTED */
vp->x = 0; /* LEFT */ 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 */ vp->y = text_height; /* TOP */
#endif
vp->width = menu_w; vp->width = menu_w;
vp->height = 0; vp->height = 0;
vp->font = pm->curfont; vp->font = pm->curfont;
@ -185,7 +189,11 @@ static void keyboard_layout(struct viewport *kbd_vp,
/* PICKER */ /* PICKER */
vp = &kbd_vp[eKBD_VP_PICKER]; vp = &kbd_vp[eKBD_VP_PICKER];
vp->x = menu_w; /* LEFT */ 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 */ vp->y = text_height - 2; /* TOP */
#endif
vp->width = sc_w - menu_w; vp->width = sc_w - menu_w;
vp->height = sc_h - vp->y; /* (MAX SIZE) - OVERWRITTEN */ vp->height = sc_h - vp->y; /* (MAX SIZE) - OVERWRITTEN */
vp->font = pm->curfont; vp->font = pm->curfont;