From 227181deb0be5de2ddcf0d28f057f4175dc051b9 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 2 Oct 2007 07:25:24 +0000 Subject: Make codepage Win-1250 actually work on charcell. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14946 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/unicode.c | 2 +- tools/codepages.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index ba28edd15a..2d11a38845 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c @@ -47,7 +47,7 @@ static const char cp_2_table[NUM_CODEPAGES] = #else /* !HAVE_LCD_BITMAP, reduced support */ -#define MAX_CP_TABLE_SIZE 512 +#define MAX_CP_TABLE_SIZE 640 #define NUM_TABLES 1 enum { diff --git a/tools/codepages.c b/tools/codepages.c index 75441f2493..07d95111de 100644 --- a/tools/codepages.c +++ b/tools/codepages.c @@ -23,8 +23,8 @@ #define MAX_TABLE_SIZE 32768 -static const int mini_index[5] = { - 0, 1, 3, 6, 7 +static const int mini_index[6] = { + 0, 1, 3, 6, 7, 8 }; static unsigned short iso_table[MAX_TABLE_SIZE]; @@ -207,7 +207,7 @@ int main(int argc, char **argv) of = fopen("isomini.cp", "wb"); if (!of) return 1; - for (i=1; i<5; i++) { + for (i=1; i<6; i++) { for (j=0; j<128; j++) { k = (unsigned char)j + 128; -- cgit v1.2.3