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 --- uisimulator/common/lcd-playersim.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'uisimulator/common') diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c index 0e10acf437..4c658438d6 100644 --- a/uisimulator/common/lcd-playersim.c +++ b/uisimulator/common/lcd-playersim.c @@ -51,8 +51,8 @@ void lcd_print_icon(int x, int icon_line, bool enable, char **icon) int row=0, col; int p=0, cp=0; - struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; - struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; + struct coordinate points[SIM_LCD_WIDTH * SIM_LCD_HEIGHT]; + struct coordinate clearpoints[SIM_LCD_WIDTH * SIM_LCD_HEIGHT]; while (icon[row]) { col=0; @@ -221,16 +221,15 @@ void lcd_double_height(bool on) lcd_update(); } -void lcd_define_hw_pattern(int which, const char *pattern, int length) +void lcd_define_hw_pattern(int pat, const char *pattern) { int i, j; - int pat = which / 8; unsigned char icon[8]; memset(icon, 0, sizeof icon); DEBUGF("Defining pattern %d:", pat); for (j = 0; j <= 5; j++) { - for (i = 0; i < length; i++) { + for (i = 0; i < 7; i++) { if ((pattern[i])&(1<<(j))) icon[5-j] |= (1<<(i)); } -- cgit v1.2.3