small GDISP fix - Thanks to George Lucian
This commit is contained in:
parent
58eaf10591
commit
851e5fb09b
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@
|
|||
#define RGB2COLOR(r,g,b) ((color_t)((((r) & 0xF8)<<8) | (((g) & 0xFC)<<3) | (((b) & 0xF8)>>3)))
|
||||
#define HTML2COLOR(h) ((color_t)((((h) & 0xF80000)>>8) | (((h) & 0x00FC00)>>5) | (((h) & 0x0000F8)>>3)))
|
||||
#define RED_OF(c) (((c) & 0xF800)>>8)
|
||||
#define GREEN_OF(c) (((c)&0x007E)>>3)
|
||||
#define GREEN_OF(c) (((c)&0x07E0)>>3)
|
||||
#define BLUE_OF(c) (((c)&0x001F)<<3)
|
||||
|
||||
#elif GDISP_PIXELFORMAT == GDISP_PIXELFORMAT_RGB888
|
||||
|
|
Loading…
Add table
Reference in a new issue