summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/lcd-x11.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/uisimulator/lcd-x11.c b/uisimulator/lcd-x11.c
index 4491049f51..9acbf00c91 100644
--- a/uisimulator/lcd-x11.c
+++ b/uisimulator/lcd-x11.c
@@ -36,10 +36,9 @@
36 * Specific implementations for X11, using the generic LCD API and data. 36 * Specific implementations for X11, using the generic LCD API and data.
37 */ 37 */
38 38
39#include "lcd.h"
40#include "lcd-x11.h" 39#include "lcd-x11.h"
41 40
42extern unsigned char display[LCD_HEIGHT/8][LCD_WIDTH]; 41extern unsigned char display[LCD_WIDTH][LCD_HEIGHT/8];
43 42
44void lcd_update (void) 43void lcd_update (void)
45{ 44{
@@ -50,10 +49,10 @@ void lcd_update (void)
50 49
51 for(y=0; y<LCD_HEIGHT; y+=8) { 50 for(y=0; y<LCD_HEIGHT; y+=8) {
52 for(x=0; x<LCD_WIDTH; x++) { 51 for(x=0; x<LCD_WIDTH; x++) {
53 if(display[y/8][x]) { 52 if(display[x][y/8]) {
54 /* one or more bits/pixels are set */ 53 /* one or more bits/pixels are set */
55 for(bit=0; bit<8; bit++) { 54 for(bit=0; bit<8; bit++) {
56 if(display[y/8][x]&(1<<bit)) { 55 if(display[x][y/8]&(1<<bit)) {
57 points[p].x = x + MARGIN_X; 56 points[p].x = x + MARGIN_X;
58 points[p].y = y+bit + MARGIN_Y; 57 points[p].y = y+bit + MARGIN_Y;
59 p++; /* increase the point counter */ 58 p++; /* increase the point counter */