diff options
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r-- | firmware/export/lcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index eedfc651c7..2e481fc938 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -190,9 +190,9 @@ static inline unsigned lcd_color_to_native(unsigned color) | |||
190 | 190 | ||
191 | /* pack/unpack 24-bit RGB values */ | 191 | /* pack/unpack 24-bit RGB values */ |
192 | #define _RGBPACK(r, g, b) _RGBPACK_LCD((r) >> 3, (g) >> 2, (b) >> 3) | 192 | #define _RGBPACK(r, g, b) _RGBPACK_LCD((r) >> 3, (g) >> 2, (b) >> 3) |
193 | #define _RGB_UNPACK_RED(x) ( (((x) >> 8) & 0xf8) | (((x) >> 11) & 0x07) ) | 193 | #define _RGB_UNPACK_RED(x) ( (((x) >> 8) & 0xf8) | (((x) >> 13) & 0x07) ) |
194 | #define _RGB_UNPACK_GREEN(x) ( (((x) >> 3) & 0xfc) | (((x) >> 5) & 0x03) ) | 194 | #define _RGB_UNPACK_GREEN(x) ( (((x) >> 3) & 0xfc) | (((x) >> 9) & 0x03) ) |
195 | #define _RGB_UNPACK_BLUE(x) ( (((x) << 3) & 0xf8) | (((x) ) & 0x07) ) | 195 | #define _RGB_UNPACK_BLUE(x) ( (((x) << 3) & 0xf8) | (((x) >> 2) & 0x07) ) |
196 | 196 | ||
197 | #if (LCD_PIXELFORMAT == RGB565SWAPPED) | 197 | #if (LCD_PIXELFORMAT == RGB565SWAPPED) |
198 | /* RGB3553 */ | 198 | /* RGB3553 */ |