mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
keyboard.c change math for editline above picker
Change-Id: I59e7f7face07f3f97fc6e016ee333cd3139ad5fd
This commit is contained in:
parent
9e93796407
commit
f0d3a62d91
1 changed files with 17 additions and 1 deletions
|
@ -1398,6 +1398,7 @@ static void kbd_move_picker_vertical(struct keyboard_parameters *pm,
|
||||||
|
|
||||||
if (!global_settings.list_wraparound)
|
if (!global_settings.list_wraparound)
|
||||||
{
|
{
|
||||||
|
#if 0 /* edit line below picker */
|
||||||
if (pm->y >= pm->lines)
|
if (pm->y >= pm->lines)
|
||||||
{
|
{
|
||||||
pm->y = pm->lines;
|
pm->y = pm->lines;
|
||||||
|
@ -1407,7 +1408,22 @@ static void kbd_move_picker_vertical(struct keyboard_parameters *pm,
|
||||||
pm->y = 0;
|
pm->y = 0;
|
||||||
else if (pm->line_edit)
|
else if (pm->line_edit)
|
||||||
pm->line_edit = false;
|
pm->line_edit = false;
|
||||||
|
#else /* edit line above picker */
|
||||||
|
if (pm->y >= pm->lines)
|
||||||
|
{
|
||||||
|
pm->y = pm->lines;
|
||||||
|
}
|
||||||
|
else if (pm->y < 0)
|
||||||
|
{
|
||||||
|
pm->line_edit = true;
|
||||||
|
pm->y = 0;
|
||||||
|
}
|
||||||
|
else if (pm->line_edit)
|
||||||
|
{
|
||||||
|
pm->line_edit = false;
|
||||||
|
pm->y = 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue