[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:
parent
91c7e333d7
commit
958daa925e
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue