diff options
Diffstat (limited to 'uisimulator/win32/lcd-win32.c')
-rw-r--r-- | uisimulator/win32/lcd-win32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c index f5672a58bf..e9bf1dacf8 100644 --- a/uisimulator/win32/lcd-win32.c +++ b/uisimulator/win32/lcd-win32.c | |||
@@ -97,8 +97,13 @@ void lcd_update_rect(int x_start, int y_start, | |||
97 | #elif LCD_DEPTH == 2 | 97 | #elif LCD_DEPTH == 2 |
98 | bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3); | 98 | bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3); |
99 | #elif LCD_DEPTH == 16 | 99 | #elif LCD_DEPTH == 16 |
100 | #if LCD_PIXELFORMAT == RGB565SWAPPED | ||
101 | unsigned bits = lcd_framebuffer[y][x]; | ||
102 | bitmap[y][x] = (bits >> 8) | (bits << 8); | ||
103 | #else | ||
100 | bitmap[y][x] = lcd_framebuffer[y][x]; | 104 | bitmap[y][x] = lcd_framebuffer[y][x]; |
101 | #endif | 105 | #endif |
106 | #endif | ||
102 | } | 107 | } |
103 | 108 | ||
104 | /* Invalidate only the window part that actually did change */ | 109 | /* Invalidate only the window part that actually did change */ |