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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c
index 156f83e639..0e10acf437 100644
--- a/uisimulator/common/lcd-playersim.c
+++ b/uisimulator/common/lcd-playersim.c
@@ -34,9 +34,9 @@
34 34
35#define CHAR_WIDTH 6 35#define CHAR_WIDTH 6
36#define CHAR_HEIGHT 8 36#define CHAR_HEIGHT 8
37#define ICON_HEIGHT 24 37#define ICON_HEIGHT 12
38#define CHAR_PIXEL 2 38#define CHAR_PIXEL 2
39#define BORDER_MARGIN 2 39#define BORDER_MARGIN 1
40 40
41static int double_height=1; 41static int double_height=1;
42extern bool lcd_display_redraw; 42extern bool lcd_display_redraw;
@@ -47,13 +47,13 @@ extern unsigned char hardware_buffer_lcd[11][2];
47void lcd_print_icon(int x, int icon_line, bool enable, char **icon) 47void lcd_print_icon(int x, int icon_line, bool enable, char **icon)
48{ 48{
49 int xpos = x; 49 int xpos = x;
50 int ypos = icon_line*(ICON_HEIGHT+CHAR_HEIGHT*2*4); 50 int ypos = icon_line*(ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL);
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[LCD_WIDTH * LCD_HEIGHT];
55 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; 55 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT];
56 56
57 while (icon[row]) { 57 while (icon[row]) {
58 col=0; 58 col=0;
59 while (icon[row][col]) { 59 while (icon[row][col]) {