diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-12-07 00:02:30 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-12-07 00:02:30 +0000 |
commit | 4a90fb6d85b8195bd23e1e1bc4d77d521eecfcc8 (patch) | |
tree | 532dd330362b2de2a0be2533564c716e4dd9a738 /apps/player/keyboard.c | |
parent | aa28709910172a7651f67c564d903ab0241491d5 (diff) | |
download | rockbox-4a90fb6d85b8195bd23e1e1bc4d77d521eecfcc8.tar.gz rockbox-4a90fb6d85b8195bd23e1e1bc4d77d521eecfcc8.zip |
Fixed player vkeyboard to properly work with unicode on target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8181 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/player/keyboard.c')
-rw-r--r-- | apps/player/keyboard.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index a290e141e5..926c351e82 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c | |||
@@ -35,11 +35,11 @@ | |||
35 | 35 | ||
36 | extern unsigned short *lcd_ascii; | 36 | extern unsigned short *lcd_ascii; |
37 | 37 | ||
38 | static unsigned short* kbd_setupkeys(int page, int* len) | 38 | static unsigned char* kbd_setupkeys(int page, int* len) |
39 | { | 39 | { |
40 | static unsigned short lines[128]; | 40 | static unsigned char lines[128]; |
41 | 41 | ||
42 | unsigned short ch; | 42 | unsigned ch; |
43 | int i = 0; | 43 | int i = 0; |
44 | 44 | ||
45 | switch (page) | 45 | switch (page) |
@@ -101,9 +101,9 @@ int kbd_input(char* text, int buflen) | |||
101 | 101 | ||
102 | int len, len_utf8, i, j; | 102 | int len, len_utf8, i, j; |
103 | int editpos, curpos, leftpos; | 103 | int editpos, curpos, leftpos; |
104 | unsigned short* line = kbd_setupkeys(page, &linelen); | 104 | unsigned char *line = kbd_setupkeys(page, &linelen); |
105 | unsigned char temptext[36]; | 105 | unsigned char temptext[36]; |
106 | unsigned short tmp; | 106 | unsigned char tmp; |
107 | unsigned char *utf8; | 107 | unsigned char *utf8; |
108 | 108 | ||
109 | int button, lastbutton = 0; | 109 | int button, lastbutton = 0; |