summaryrefslogtreecommitdiff
path: root/uisimulator/win32/lcd-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/lcd-win32.c')
-rw-r--r--uisimulator/win32/lcd-win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c
index e9bf1dacf8..a50fbd11f6 100644
--- a/uisimulator/win32/lcd-win32.c
+++ b/uisimulator/win32/lcd-win32.c
@@ -95,7 +95,11 @@ void lcd_update_rect(int x_start, int y_start,
95#if LCD_DEPTH == 1 95#if LCD_DEPTH == 1
96 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1); 96 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
97#elif LCD_DEPTH == 2 97#elif LCD_DEPTH == 2
98#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
99 bitmap[y][x] = ((lcd_framebuffer[y][x/4] >> (2 * (x & 3))) & 3);
100#else
98 bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3); 101 bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
102#endif
99#elif LCD_DEPTH == 16 103#elif LCD_DEPTH == 16
100#if LCD_PIXELFORMAT == RGB565SWAPPED 104#if LCD_PIXELFORMAT == RGB565SWAPPED
101 unsigned bits = lcd_framebuffer[y][x]; 105 unsigned bits = lcd_framebuffer[y][x];