add macro to convert 8bit RGB to RGB565
This commit is contained in:
parent
a39890ef48
commit
493d7dc55a
@ -3,6 +3,7 @@
|
|||||||
#include <3ds/services/gsp.h>
|
#include <3ds/services/gsp.h>
|
||||||
|
|
||||||
#define RGB565(r,g,b) (((b)&0x1f)|(((g)&0x3f)<<5)|(((r)&0x1f)<<11))
|
#define RGB565(r,g,b) (((b)&0x1f)|(((g)&0x3f)<<5)|(((r)&0x1f)<<11))
|
||||||
|
#define RGB8_to_565(r,g,b) (((b)>>3)&0x1f)|((((g)>>2)&0x3f)<<5)|((((r)>>3)&0x1f)<<11)
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user