summaryrefslogtreecommitdiffstats
path: root/apps/player/keyboard.c
diff options
context:
space:
mode:
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);