diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-26 07:52:13 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-26 07:52:13 +0000 |
commit | ad4e3d665734b14a28f1ba5fa874663772dab3e7 (patch) | |
tree | bff44652495f1319a4d11ed63b3d4e90cb11197f /apps/plugins/jackpot.c | |
parent | 165f62d0cd771660e4b8d2ba7475e14d0d6f2e9f (diff) | |
download | rockbox-ad4e3d665734b14a28f1ba5fa874663772dab3e7.tar.gz rockbox-ad4e3d665734b14a28f1ba5fa874663772dab3e7.zip |
First step of charcell LCD code rework: * Make it fully unicode aware so that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/jackpot.c')
-rw-r--r-- | apps/plugins/jackpot.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c index a2ebb81f5c..37ee4514e7 100644 --- a/apps/plugins/jackpot.c +++ b/apps/plugins/jackpot.c | |||
@@ -47,7 +47,7 @@ static unsigned char pattern[]={ | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | static unsigned char str[12]; /*Containt the first line*/ | 49 | static unsigned char str[12]; /*Containt the first line*/ |
50 | static unsigned char h1,h2,h3; /*Handle for the pattern*/ | 50 | static unsigned long h1,h2,h3; /*Handle for the pattern*/ |
51 | 51 | ||
52 | /* here is a global api struct pointer. while not strictly necessary, | 52 | /* here is a global api struct pointer. while not strictly necessary, |
53 | it's nice not to have to pass the api pointer in all function calls | 53 | it's nice not to have to pass the api pointer in all function calls |
@@ -109,10 +109,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
109 | rb->lcd_define_pattern(h1, pattern); | 109 | rb->lcd_define_pattern(h1, pattern); |
110 | rb->lcd_define_pattern(h2, pattern+7); | 110 | rb->lcd_define_pattern(h2, pattern+7); |
111 | rb->lcd_define_pattern(h3, pattern+28); | 111 | rb->lcd_define_pattern(h3, pattern+28); |
112 | rb->snprintf(str,sizeof(str),"%c%cJackpot%c%c",h1,h2,h2,h1); | 112 | |
113 | rb->lcd_puts(0,0,str); | 113 | rb->lcd_puts(0,0," Jackpot "); |
114 | rb->snprintf(str,sizeof(str)," %c V1.1 %c",h3,h3); | 114 | rb->lcd_putc(0,0,h1); rb->lcd_putc(1,0,h2); |
115 | rb->lcd_puts(0,1,str); | 115 | rb->lcd_putc(9,0,h2); rb->lcd_putc(10,0,h1); |
116 | rb->lcd_puts(0,1," V1.1 "); | ||
117 | rb->lcd_putc(1,1,h3); rb->lcd_putc(9,1,h3); | ||
116 | rb->sleep(HZ*2); | 118 | rb->sleep(HZ*2); |
117 | rb->lcd_clear_display(); | 119 | rb->lcd_clear_display(); |
118 | 120 | ||