summaryrefslogtreecommitdiff
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)
134 /* Draw insert chars */ 134 /* Draw insert chars */
135 utf8 = temptext; 135 utf8 = temptext;
136 tmp = KEYBOARD_INSERT_LEFT; 136 tmp = KEYBOARD_INSERT_LEFT;
137 utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1); 137 utf8 = iso_decode(&tmp, utf8, 0, 1);
138 tmp = line[x]; 138 utf8 = iso_decode(&line[x], utf8, 0, 1);
139 utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1);
140 tmp = KEYBOARD_INSERT_RIGHT; 139 tmp = KEYBOARD_INSERT_RIGHT;
141 utf8 = iso_decode((unsigned char*)&tmp, utf8, 0, 1); 140 utf8 = iso_decode(&tmp, utf8, 0, 1);
142 for (i = 1; i < 8; i++) 141 for (i = 1; i < 8; i++)
143 { 142 {
144 utf8 = iso_decode((unsigned char*)&line[(x+i)%linelen], utf8, 0, 1); 143 utf8 = iso_decode(&line[(x+i)%linelen], utf8, 0, 1);
145 /* temptext[i+2] = line[(x+i)%linelen]; */
146 } 144 }
147 *utf8 = 0; 145 *utf8 = 0;
148 lcd_puts(1, 0, temptext); 146 lcd_puts(1, 0, temptext);