test swap

This commit is contained in:
Anthony Calosa
2017-02-23 19:05:37 +08:00
parent 7c6d59a292
commit a12a5e1637

View File

@@ -165,7 +165,7 @@ typedef uint32_t u32;
#if defined (ABGR8888) #if defined (ABGR8888)
#ifndef ARGB #ifndef ARGB
#define ARGB(a, r, g, b) ((u32)((a << 24) | (b << 16) | (g << 8) | r)) // macro to assemble pixels in correct format #define ARGB(a, r, g, b) (PIXEL_TYPE)((a << 24) | (r << 16) | (g << 8) | b) // macro to assemble pixels in correct format
#endif #endif
#define MAKE_COLOR(a, c) (a << 24 | c) #define MAKE_COLOR(a, c) (a << 24 | c)
#define MASK_ALPHA 0xFF000000 // masks for accessing individual pixels #define MASK_ALPHA 0xFF000000 // masks for accessing individual pixels