summaryrefslogtreecommitdiff
path: root/uisimulator/x11/lcd-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/lcd-x11.c')
-rw-r--r--uisimulator/x11/lcd-x11.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c
index 20e4c6d3a2..0d47160b23 100644
--- a/uisimulator/x11/lcd-x11.c
+++ b/uisimulator/x11/lcd-x11.c
@@ -46,6 +46,8 @@ extern Display *dpy;
46#ifdef HAVE_LCD_BITMAP 46#ifdef HAVE_LCD_BITMAP
47unsigned char lcd_framebuffer_copy[LCD_WIDTH][LCD_HEIGHT/8]; 47unsigned char lcd_framebuffer_copy[LCD_WIDTH][LCD_HEIGHT/8];
48 48
49static int counter;
50
49void lcd_update (void) 51void lcd_update (void)
50{ 52{
51 int x, y; 53 int x, y;
@@ -55,6 +57,8 @@ void lcd_update (void)
55 int cp=0; 57 int cp=0;
56 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; 58 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT];
57 59
60 fprintf(stderr, "%04d: lcd_update()\n", counter++);
61
58 for(y=0; y<LCD_HEIGHT; y+=8) { 62 for(y=0; y<LCD_HEIGHT; y+=8) {
59 for(x=0; x<LCD_WIDTH; x++) { 63 for(x=0; x<LCD_WIDTH; x++) {
60 if(lcd_framebuffer[x][y/8] || lcd_framebuffer_copy[x][y/8]) { 64 if(lcd_framebuffer[x][y/8] || lcd_framebuffer_copy[x][y/8]) {
@@ -104,6 +108,9 @@ void lcd_update_rect(int x_start, int y_start,
104 struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; 108 struct coordinate points[LCD_WIDTH * LCD_HEIGHT];
105 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; 109 struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT];
106 110
111 fprintf(stderr, "%04d: lcd_update_rect(%d, %d, %d, %d)\n",
112 counter++, x_start, y_start, width, height);
113
107 /* The Y coordinates have to work on even 8 pixel rows */ 114 /* The Y coordinates have to work on even 8 pixel rows */
108 ymax = (yline + height)/8; 115 ymax = (yline + height)/8;
109 yline /= 8; 116 yline /= 8;