add macro for building RGB565 colors
This commit is contained in:
parent
1a575891eb
commit
36e3a3de3a
@ -2,6 +2,8 @@
|
|||||||
#include <3ds/types.h>
|
#include <3ds/types.h>
|
||||||
#include <3ds/services/gsp.h>
|
#include <3ds/services/gsp.h>
|
||||||
|
|
||||||
|
#define RGB565(r,g,b) (((b)&0x1f)|(((g)&0x3f)<<5)|(((r)&0x1f)<<11))
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
GFX_TOP = 0,
|
GFX_TOP = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user