diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/x11/lcd-x11.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c index c28a2b9528..a5cc5c0965 100644 --- a/uisimulator/x11/lcd-x11.c +++ b/uisimulator/x11/lcd-x11.c | |||
@@ -61,7 +61,7 @@ void lcd_update (void) | |||
61 | if(lcd_framebuffer[x][y/8] || lcd_framebuffer_copy[x][y/8]) { | 61 | if(lcd_framebuffer[x][y/8] || lcd_framebuffer_copy[x][y/8]) { |
62 | /* one or more bits/pixels are changed */ | 62 | /* one or more bits/pixels are changed */ |
63 | unsigned char diff = | 63 | unsigned char diff = |
64 | lcd_framebuffer[x][y/8] ^ lcd_framebuffer_copy[x][y/8]; | 64 | lcd_framebuffer[x][y/8] ^ lcd_framebuffer_copy[x][y/8]; |
65 | 65 | ||
66 | for(bit=0; bit<8; bit++) { | 66 | for(bit=0; bit<8; bit++) { |
67 | if(lcd_framebuffer[x][y/8]&(1<<bit)) { | 67 | if(lcd_framebuffer[x][y/8]&(1<<bit)) { |
@@ -86,7 +86,8 @@ void lcd_update (void) | |||
86 | 86 | ||
87 | drawdots(0, &clearpoints[0], cp); | 87 | drawdots(0, &clearpoints[0], cp); |
88 | drawdots(1, &points[0], p); | 88 | drawdots(1, &points[0], p); |
89 | /* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/ | 89 | /* printf("lcd_update: Draws %d pixels, clears %d pixels (max %d/%d)\n", |
90 | p, cp, p+cp, LCD_HEIGHT*LCD_WIDTH); */ | ||
90 | XSync(dpy,False); | 91 | XSync(dpy,False); |
91 | } | 92 | } |
92 | 93 | ||
@@ -146,7 +147,7 @@ void lcd_update_rect(int x_start, int y_start, | |||
146 | 147 | ||
147 | drawdots(0, &clearpoints[0], cp); | 148 | drawdots(0, &clearpoints[0], cp); |
148 | drawdots(1, &points[0], p); | 149 | drawdots(1, &points[0], p); |
149 | /* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/ | 150 | /* printf("lcd_update_rect: Draws %d pixels, clears %d pixels\n", p, cp);*/ |
150 | XSync(dpy,False); | 151 | XSync(dpy,False); |
151 | } | 152 | } |
152 | 153 | ||