minor error

Still testing opacity
This commit is contained in:
Pecusx
2021-05-08 14:55:02 +02:00
parent b885cf2701
commit 405d8f00ad
+9 -9
View File
@@ -58,20 +58,20 @@ extern int pauseg;
#ifndef RENDER16B #ifndef RENDER16B
#define RGB565(r, g, b) (((r) << (5+16)) | ((g) << (5+8)) | (b<<5)) #define RGB565(r, g, b) (((r) << (5+16)) | ((g) << (5+8)) | (b<<5))
#define R_RGB(rgb) (((rgb) >> (5+16)) & 255) #define R_RGB565(rgb) (((rgb) >> (5+16)) & 255)
#define G_RGB(rgb) (((rgb) >> (5+8)) & 255) #define G_RGB565(rgb) (((rgb) >> (5+8)) & 255)
#define B_RGB(rgb) ((rgb>>5) & 255) #define B_RGB565(rgb) ((rgb>>5) & 255)
#else #else
#if defined(ABGR1555) #if defined(ABGR1555)
#define RGB565(r, g, b) (((b) << (10)) | ((g) << 5) | (r)) #define RGB565(r, g, b) (((b) << (10)) | ((g) << 5) | (r))
#define B_RGB(rgb) (((rgb) >> (10)) & 31) #define B_RGB565(rgb) (((rgb) >> (10)) & 31)
#define G_RGB(rgb) (((rgb) >> 5) & 31) #define G_RGB565(rgb) (((rgb) >> 5) & 31)
#define R_RGB(rgb) (rgb & 31) #define R_RGB565(rgb) (rgb & 31)
#else #else
#define RGB565(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b)) #define RGB565(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b))
#define R_RGB(rgb) (((rgb) >> (5+6)) & 31) #define R_RGB565(rgb) (((rgb) >> (5+6)) & 31)
#define G_RGB(rgb) (((rgb) >> 6) & 31) #define G_RGB565(rgb) (((rgb) >> 6) & 31)
#define B_RGB(rgb) (rgb & 31) #define B_RGB565(rgb) (rgb & 31)
#endif #endif
#endif #endif
#define uint32 unsigned int #define uint32 unsigned int