summaryrefslogtreecommitdiff
path: root/uisimulator/lcd-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/lcd-x11.c')
-rw-r--r--uisimulator/lcd-x11.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/lcd-x11.c b/uisimulator/lcd-x11.c
index 7655765137..ccde5935cd 100644
--- a/uisimulator/lcd-x11.c
+++ b/uisimulator/lcd-x11.c
@@ -37,6 +37,7 @@
37 */ 37 */
38 38
39#include "lcd.h" 39#include "lcd.h"
40#include "lcd-x11.h"
40 41
41extern unsigned char display[LCD_WIDTH/8][LCD_HEIGHT]; 42extern unsigned char display[LCD_WIDTH/8][LCD_HEIGHT];
42 43
@@ -53,8 +54,8 @@ void lcd_update (void)
53 /* one or more bits/pixels are set */ 54 /* one or more bits/pixels are set */
54 for(bit=0; bit<8; bit++) { 55 for(bit=0; bit<8; bit++) {
55 if(display[y/8][x]&(1<<bit)) { 56 if(display[y/8][x]&(1<<bit)) {
56 points[p].x = x; 57 points[p].x = x + MARGIN_X;
57 points[p].y = y+bit; 58 points[p].y = y+bit + MARGIN_Y;
58 p++; /* increase the point counter */ 59 p++; /* increase the point counter */
59 } 60 }
60 } 61 }
@@ -63,4 +64,5 @@ void lcd_update (void)
63 } 64 }
64 } 65 }
65 drawdots(&points[0], p); 66 drawdots(&points[0], p);
67 fprintf(stderr, "lcd_update: Draws %d pixels\n", p);
66} 68}