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 /uisimulator/common | |
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 'uisimulator/common')
-rw-r--r-- | uisimulator/common/lcd-playersim.c | 9 |
1 files changed, 4 insertions, 5 deletions
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) | |||
51 | int row=0, col; | 51 | int row=0, col; |
52 | 52 | ||
53 | int p=0, cp=0; | 53 | int p=0, cp=0; |
54 | struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; | 54 | struct coordinate points[SIM_LCD_WIDTH * SIM_LCD_HEIGHT]; |
55 | struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; | 55 | struct coordinate clearpoints[SIM_LCD_WIDTH * SIM_LCD_HEIGHT]; |
56 | 56 | ||
57 | while (icon[row]) { | 57 | while (icon[row]) { |
58 | col=0; | 58 | col=0; |
@@ -221,16 +221,15 @@ void lcd_double_height(bool on) | |||
221 | lcd_update(); | 221 | lcd_update(); |
222 | } | 222 | } |
223 | 223 | ||
224 | void lcd_define_hw_pattern(int which, const char *pattern, int length) | 224 | void lcd_define_hw_pattern(int pat, const char *pattern) |
225 | { | 225 | { |
226 | int i, j; | 226 | int i, j; |
227 | int pat = which / 8; | ||
228 | unsigned char icon[8]; | 227 | unsigned char icon[8]; |
229 | memset(icon, 0, sizeof icon); | 228 | memset(icon, 0, sizeof icon); |
230 | 229 | ||
231 | DEBUGF("Defining pattern %d:", pat); | 230 | DEBUGF("Defining pattern %d:", pat); |
232 | for (j = 0; j <= 5; j++) { | 231 | for (j = 0; j <= 5; j++) { |
233 | for (i = 0; i < length; i++) { | 232 | for (i = 0; i < 7; i++) { |
234 | if ((pattern[i])&(1<<(j))) | 233 | if ((pattern[i])&(1<<(j))) |
235 | icon[5-j] |= (1<<(i)); | 234 | icon[5-j] |= (1<<(i)); |
236 | } | 235 | } |