summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/lcd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index cf6a16572a..80ef45a573 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -134,7 +134,14 @@ struct _fb_pixel {
134typedef struct _fb_pixel fb_data; 134typedef struct _fb_pixel fb_data;
135#define FB_DATA_SZ 3 135#define FB_DATA_SZ 3
136#else /* LCD_DEPTH > 24 */ 136#else /* LCD_DEPTH > 24 */
137#if (LCD_PIXELFORMAT == XRGB8888)
138struct _fb_pixel {
139 unsigned char b, g, r, x;
140};
141typedef struct _fb_pixel fb_data;
142#else
137typedef unsigned long fb_data; 143typedef unsigned long fb_data;
144#endif
138#define FB_DATA_SZ 4 145#define FB_DATA_SZ 4
139#endif /* LCD_DEPTH */ 146#endif /* LCD_DEPTH */
140 147
@@ -348,7 +355,7 @@ static inline unsigned lcd_color_to_native(unsigned color)
348#define RGB_UNPACK_BLUE_LCD(x) _RGB_UNPACK_BLUE_LCD(x) 355#define RGB_UNPACK_BLUE_LCD(x) _RGB_UNPACK_BLUE_LCD(x)
349#endif /* RGB565* */ 356#endif /* RGB565* */
350 357
351#elif LCD_PIXELFORMAT == RGB888 358#elif (LCD_PIXELFORMAT == RGB888) || (LCD_PIXELFORMAT == XRGB8888)
352#define LCD_MAX_RED 255 359#define LCD_MAX_RED 255
353#define LCD_MAX_GREEN 255 360#define LCD_MAX_GREEN 255
354#define LCD_MAX_BLUE 255 361#define LCD_MAX_BLUE 255