Banners should use RGBA4444 color.

This commit is contained in:
Steveice10
2015-01-25 10:32:01 -08:00
parent c0c54f81cb
commit 5bfa933559
5 changed files with 32 additions and 20 deletions

View File

@@ -3,8 +3,13 @@
#include "../types.h"
u16 rgba_to_rgb565(u8 r, u8 g, u8 b, u8 a);
u16* image_to_tiles(const char* image, u32 width, u32 height, u32* size);
typedef enum {
RGB565,
RGBA4444
} PixelFormat;
u16 pack_color(u8 r, u8 g, u8 b, u8 a, PixelFormat format);
u16* image_to_tiles(const char* image, u32 width, u32 height, PixelFormat format, u32* size);
void utf8_to_utf16(u16* dst, const char* src, size_t max_len);
#endif