add macro to convert 8bit RGB to RGB565

This commit is contained in:
Dave Murphy 2014-12-12 22:57:24 +00:00
parent a39890ef48
commit 493d7dc55a

View File

@ -3,6 +3,7 @@
#include <3ds/services/gsp.h>
#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
{