From ad4e3d665734b14a28f1ba5fa874663772dab3e7 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 26 Mar 2007 07:52:13 +0000 Subject: 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 --- apps/plugins/jackpot.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps/plugins/jackpot.c') 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[]={ }; static unsigned char str[12]; /*Containt the first line*/ -static unsigned char h1,h2,h3; /*Handle for the pattern*/ +static unsigned long h1,h2,h3; /*Handle for the pattern*/ /* here is a global api struct pointer. while not strictly necessary, 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) rb->lcd_define_pattern(h1, pattern); rb->lcd_define_pattern(h2, pattern+7); rb->lcd_define_pattern(h3, pattern+28); - rb->snprintf(str,sizeof(str),"%c%cJackpot%c%c",h1,h2,h2,h1); - rb->lcd_puts(0,0,str); - rb->snprintf(str,sizeof(str)," %c V1.1 %c",h3,h3); - rb->lcd_puts(0,1,str); + + rb->lcd_puts(0,0," Jackpot "); + rb->lcd_putc(0,0,h1); rb->lcd_putc(1,0,h2); + rb->lcd_putc(9,0,h2); rb->lcd_putc(10,0,h1); + rb->lcd_puts(0,1," V1.1 "); + rb->lcd_putc(1,1,h3); rb->lcd_putc(9,1,h3); rb->sleep(HZ*2); rb->lcd_clear_display(); -- cgit v1.2.3