summaryrefslogtreecommitdiff
path: root/firmware/include/rbunicode.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-17 10:31:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit658026e6267277b27d297c481728f74d160a8481 (patch)
tree915a9d2bb48469bdd5b9127dc19a61f230721a6c /firmware/include/rbunicode.h
parent8cb555460ff79e636a7907fb2589e16db98c8600 (diff)
downloadrockbox-658026e6267277b27d297c481728f74d160a8481.tar.gz
rockbox-658026e6267277b27d297c481728f74d160a8481.zip
[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
Diffstat (limited to 'firmware/include/rbunicode.h')
-rw-r--r--firmware/include/rbunicode.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h
index 077029304d..1af560abfe 100644
--- a/firmware/include/rbunicode.h
+++ b/firmware/include/rbunicode.h
@@ -33,8 +33,6 @@
33#define MASK 0xC0 /* 11000000 */ 33#define MASK 0xC0 /* 11000000 */
34#define COMP 0x80 /* 10x */ 34#define COMP 0x80 /* 10x */
35 35
36#ifdef HAVE_LCD_BITMAP
37
38enum codepages { 36enum codepages {
39 ISO_8859_1 = 0, /* Latin1 */ 37 ISO_8859_1 = 0, /* Latin1 */
40 ISO_8859_7, /* Greek */ 38 ISO_8859_7, /* Greek */
@@ -55,23 +53,6 @@ enum codepages {
55 INIT_CODEPAGE = ISO_8859_1, 53 INIT_CODEPAGE = ISO_8859_1,
56}; 54};
57 55
58#else /* !HAVE_LCD_BITMAP, reduced support */
59
60enum codepages {
61 ISO_8859_1 = 0, /* Latin1 */
62 ISO_8859_7, /* Greek */
63 WIN_1251, /* Cyrillic */
64 ISO_8859_9, /* Turkish */
65 ISO_8859_2, /* Latin Extended */
66 WIN_1250, /* Central European */
67 WIN_1252, /* Western European */
68 UTF_8, /* Unicode */
69 NUM_CODEPAGES,
70 INIT_CODEPAGE = ISO_8859_1,
71};
72
73#endif
74
75/* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */ 56/* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */
76unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8); 57unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8);
77unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count); 58unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count);