forked from len0rd/rockbox
Make kbd_input() show a cancel splash to indicate user abort better and for better consistency all over the place. Change checking for its return value (style-wise) at some places too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
345920fe7e
commit
18e40e0f4c
11 changed files with 26 additions and 21 deletions
|
|
@ -568,7 +568,7 @@ static void add_memo(struct shown *shown, int type)
|
|||
{
|
||||
bool saved = false;
|
||||
if (rb->kbd_input(memos[memos_in_memory].message,
|
||||
sizeof memos[memos_in_memory].message) != -1)
|
||||
sizeof memos[memos_in_memory].message) == 0)
|
||||
{
|
||||
if (rb->strlen(memos[memos_in_memory].message))
|
||||
{
|
||||
|
|
@ -634,7 +634,7 @@ static bool edit_memo(int change, struct shown *shown)
|
|||
|
||||
case 1: /* edit */
|
||||
if(rb->kbd_input(memos[pointer_array[change]].message,
|
||||
sizeof memos[pointer_array[change]].message) != -1)
|
||||
sizeof memos[pointer_array[change]].message) == 0)
|
||||
save_memo(pointer_array[change],true,shown);
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue