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-958daa925e71d8a4f256fc2d121326c01e62b344.tar.gz rockbox-958daa925e71d8a4f256fc2d121326c01e62b344.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, | |||
176 | vp = &kbd_vp[eKBD_VP_MENU]; | 176 | vp = &kbd_vp[eKBD_VP_MENU]; |
177 | int menu_w = 0;//pm->font_w * MENU_CHARS; /* NOT IMPLEMENTED */ | 177 | int menu_w = 0;//pm->font_w * MENU_CHARS; /* NOT IMPLEMENTED */ |
178 | vp->x = 0; /* LEFT */ | 178 | vp->x = 0; /* LEFT */ |
179 | #ifdef HAVE_LCD_SPLIT | ||
180 | vp->y = MAX(LCD_SPLIT_POS, text_height); /* Sansa Clip/Clip+ */ | ||
181 | #else | ||
179 | vp->y = text_height; /* TOP */ | 182 | vp->y = text_height; /* TOP */ |
183 | #endif | ||
180 | vp->width = menu_w; | 184 | vp->width = menu_w; |
181 | vp->height = 0; | 185 | vp->height = 0; |
182 | vp->font = pm->curfont; | 186 | vp->font = pm->curfont; |
@@ -185,7 +189,11 @@ static void keyboard_layout(struct viewport *kbd_vp, | |||
185 | /* PICKER */ | 189 | /* PICKER */ |
186 | vp = &kbd_vp[eKBD_VP_PICKER]; | 190 | vp = &kbd_vp[eKBD_VP_PICKER]; |
187 | vp->x = menu_w; /* LEFT */ | 191 | vp->x = menu_w; /* LEFT */ |
192 | #ifdef HAVE_LCD_SPLIT | ||
193 | vp->y = MAX(LCD_SPLIT_POS, text_height - 2); /* Sansa Clip/Clip+ */ | ||
194 | #else | ||
188 | vp->y = text_height - 2; /* TOP */ | 195 | vp->y = text_height - 2; /* TOP */ |
196 | #endif | ||
189 | vp->width = sc_w - menu_w; | 197 | vp->width = sc_w - menu_w; |
190 | vp->height = sc_h - vp->y; /* (MAX SIZE) - OVERWRITTEN */ | 198 | vp->height = sc_h - vp->y; /* (MAX SIZE) - OVERWRITTEN */ |
191 | vp->font = pm->curfont; | 199 | vp->font = pm->curfont; |