summaryrefslogtreecommitdiffstats
path: root/apps/player/keyboard.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-12-07 07:15:16 +0000
committerJens Arnold <amiconn@rockbox.org>2005-12-07 07:15:16 +0000
commit28108ef6d1e183687b8b62ad19df0fb1441a572a (patch)
tree9007022ad6024247ea4377f8bbadbc63e26b8c7a /apps/player/keyboard.c
parent4a90fb6d85b8195bd23e1e1bc4d77d521eecfcc8 (diff)
downloadrockbox-28108ef6d1e183687b8b62ad19df0fb1441a572a.tar.gz
rockbox-28108ef6d1e183687b8b62ad19df0fb1441a572a.tar.bz2
rockbox-28108ef6d1e183687b8b62ad19df0fb1441a572a.zip
Code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8182 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/player/keyboard.c')
-rw-r--r--apps/player/keyboard.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c
index 926c351e82..380edd5e95 100644
--- a/apps/player/keyboard.c
+++ b/apps/player/keyboard.c
@@ -134,15 +134,13 @@ int kbd_input(char* text, int buflen)
/* Draw insert chars */
utf8 = temptext;
tmp = KEYBOARD_INSERT_LEFT;
- utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1);
- tmp = line[x];
- utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1);
+ utf8 = iso_decode(&tmp, utf8, 0, 1);
+ utf8 = iso_decode(&line[x], utf8, 0, 1);
tmp = KEYBOARD_INSERT_RIGHT;
- utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1);
+ utf8 = iso_decode(&tmp, utf8, 0, 1);
for (i = 1; i < 8; i++)
{
- utf8 = iso_decode((unsigned char*)&line[(x+i)%linelen], utf8, 0, 1);
- /* temptext[i+2] = line[(x+i)%linelen]; */
+ utf8 = iso_decode(&line[(x+i)%linelen], utf8, 0, 1);
}
*utf8 = 0;
lcd_puts(1, 0, temptext);