diff options
Diffstat (limited to 'uisimulator/x11/lcd-x11.c')
-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 1b9949b26b..dc03222b35 100644 --- a/uisimulator/x11/lcd-x11.c +++ b/uisimulator/x11/lcd-x11.c | |||
@@ -158,7 +158,8 @@ extern unsigned char lcd_buffer[2][11]; | |||
158 | extern void drawrect(int color, int x1, int y1, int x2, int y2); | 158 | extern void drawrect(int color, int x1, int y1, int x2, int y2); |
159 | extern bool lcd_display_redraw; | 159 | extern bool lcd_display_redraw; |
160 | 160 | ||
161 | static unsigned char lcd_buffer_copy[2][11]; | 161 | extern unsigned char hardware_buffer_lcd[11][2]; |
162 | static unsigned char lcd_buffer_copy[11][2]; | ||
162 | 163 | ||
163 | void lcd_update (void) | 164 | void lcd_update (void) |
164 | { | 165 | { |
@@ -167,8 +168,8 @@ void lcd_update (void) | |||
167 | for (y=0; y<2; y++) { | 168 | for (y=0; y<2; y++) { |
168 | for (x=0; x<11; x++) { | 169 | for (x=0; x<11; x++) { |
169 | if (lcd_display_redraw || | 170 | if (lcd_display_redraw || |
170 | lcd_buffer_copy[y][x] != lcd_buffer[y][x]) { | 171 | lcd_buffer_copy[x][y] != hardware_buffer_lcd[x][y]) { |
171 | lcd_buffer_copy[y][x] = lcd_buffer[y][x]; | 172 | lcd_buffer_copy[x][y] = hardware_buffer_lcd[x][y]; |
172 | lcd_print_char(x, y); | 173 | lcd_print_char(x, y); |
173 | changed=true; | 174 | changed=true; |
174 | } | 175 | } |