summaryrefslogtreecommitdiff
path: root/uisimulator/common/lcd-playersim.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/lcd-playersim.c')
-rw-r--r--uisimulator/common/lcd-playersim.c9
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
224void lcd_define_hw_pattern(int which, const char *pattern, int length) 224void 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 }