mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
Revert "internals: Support characters beyond the first unicode plane (WIP)"
This reverts commit d05c59f35b.
This commit is contained in:
parent
d05c59f35b
commit
84504c7471
44 changed files with 335 additions and 480 deletions
|
|
@ -660,16 +660,16 @@ int usb_screen(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ucschar_t *bidi_l2v(const unsigned char *str, int orientation)
|
||||
unsigned short *bidi_l2v(const unsigned char *str, int orientation)
|
||||
{
|
||||
static ucschar_t utf_buf[SCROLL_LINE_SIZE];
|
||||
ucschar_t *target;
|
||||
static unsigned short utf16_buf[SCROLL_LINE_SIZE];
|
||||
unsigned short *target;
|
||||
(void)orientation;
|
||||
|
||||
target = utf_buf;
|
||||
target = utf16_buf;
|
||||
|
||||
while (*str)
|
||||
str = utf8decode(str, target++);
|
||||
*target = 0;
|
||||
return utf_buf;
|
||||
return utf16_buf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue