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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/uisimulator/lcd-x11.c b/uisimulator/lcd-x11.c
index ccde5935cd..d61955d0cd 100644
--- a/uisimulator/lcd-x11.c
+++ b/uisimulator/lcd-x11.c
@@ -39,7 +39,7 @@
39#include "lcd.h" 39#include "lcd.h"
40#include "lcd-x11.h" 40#include "lcd-x11.h"
41 41
42extern unsigned char display[LCD_WIDTH/8][LCD_HEIGHT]; 42extern unsigned char display[LCD_HEIGHT/8][LCD_WIDTH];
43 43
44void lcd_update (void) 44void lcd_update (void)
45{ 45{
@@ -56,6 +56,9 @@ void lcd_update (void)
56 if(display[y/8][x]&(1<<bit)) { 56 if(display[y/8][x]&(1<<bit)) {
57 points[p].x = x + MARGIN_X; 57 points[p].x = x + MARGIN_X;
58 points[p].y = y+bit + MARGIN_Y; 58 points[p].y = y+bit + MARGIN_Y;
59#ifdef LCD_DEBUG
60 printf("Set pixel at %d,%d\n", x, y+bit);
61#endif
59 p++; /* increase the point counter */ 62 p++; /* increase the point counter */
60 } 63 }
61 } 64 }