summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/x11/lcd-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c
index 7547008..c28a2b9 100644
--- a/uisimulator/x11/lcd-x11.c
+++ b/uisimulator/x11/lcd-x11.c
@@ -115,7 +115,7 @@ void lcd_update_rect(int x_start, int y_start,
if(ymax >= LCD_HEIGHT/8)
ymax = LCD_HEIGHT/8-1;
- for(; yline<ymax; yline++) {
+ for(; yline<=ymax; yline++) {
y = yline * 8;
for(x=x_start; x<xmax; x++) {
if(lcd_framebuffer[x][yline] || lcd_framebuffer_copy[x][yline]) {