1
0
Fork 0
forked from len0rd/rockbox

Add XRGB8888 native format

This got lost somehow during Agptek port merge

Change-Id: Ie84463ba523d2307466b49354867117e7393a440
This commit is contained in:
Marcin Bukat 2018-06-12 13:25:12 +02:00
parent 0e48cb7768
commit f2075a5709

View file

@ -134,7 +134,14 @@ struct _fb_pixel {
typedef struct _fb_pixel fb_data;
#define FB_DATA_SZ 3
#else /* LCD_DEPTH > 24 */
#if (LCD_PIXELFORMAT == XRGB8888)
struct _fb_pixel {
unsigned char b, g, r, x;
};
typedef struct _fb_pixel fb_data;
#else
typedef unsigned long fb_data;
#endif
#define FB_DATA_SZ 4
#endif /* LCD_DEPTH */
@ -348,7 +355,7 @@ static inline unsigned lcd_color_to_native(unsigned color)
#define RGB_UNPACK_BLUE_LCD(x) _RGB_UNPACK_BLUE_LCD(x)
#endif /* RGB565* */
#elif LCD_PIXELFORMAT == RGB888
#elif (LCD_PIXELFORMAT == RGB888) || (LCD_PIXELFORMAT == XRGB8888)
#define LCD_MAX_RED 255
#define LCD_MAX_GREEN 255
#define LCD_MAX_BLUE 255