From b7cb15c0daa879b7095ec9961fcbc69c93639b35 Mon Sep 17 00:00:00 2001 From: Zzzz <864859648@qq.com> Date: Sat, 11 May 2019 12:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20api.h=20=E5=AF=B9=E8=BF=99?= =?UTF-8?q?=E4=B8=AAGL=5FRGB=5F16=5Fto=5F32(rgb)=E5=AE=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E5=A2=9E=E5=8A=A0=E9=80=8F=E6=98=8E=E5=BA=A6?= =?UTF-8?q?a=EF=BC=8C=E8=BF=99=E6=A0=B7=E5=BD=93=E9=9C=80=E8=A6=8132?= =?UTF-8?q?=E4=BD=8D=E8=89=B2=E6=97=B6=E9=80=8F=E6=98=8E=E5=BA=A6a?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cdraw=5Fbitmap()=E6=89=8D=E8=83=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=87=BAbitmap=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core_include/api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core_include/api.h b/core/core_include/api.h index 5961e1d..27c99f5 100644 --- a/core/core_include/api.h +++ b/core/core_include/api.h @@ -23,7 +23,7 @@ void log_out(const char* log); #define GL_RGB_G(rgb) ((((unsigned int)(rgb)) >> 8) & 0xFF) #define GL_RGB_B(rgb) (((unsigned int)(rgb)) & 0xFF) #define GL_RGB_32_to_16(rgb) (((((unsigned int)(rgb)) & 0xFF) >> 3) | ((((unsigned int)(rgb)) & 0xFC00) >> 5) | ((((unsigned int)(rgb)) & 0xF80000) >> 8)) -#define GL_RGB_16_to_32(rgb) (((((unsigned int)(rgb)) & 0x1F) << 3) | ((((unsigned int)(rgb)) & 0x7E0) << 5) | ((((unsigned int)(rgb)) & 0xF800) << 8)) +#define GL_RGB_16_to_32(rgb) ((0xFF << 24) | ((((unsigned int)(rgb)) & 0x1F) << 3) | ((((unsigned int)(rgb)) & 0x7E0) << 5) | ((((unsigned int)(rgb)) & 0xF800) << 8)) typedef struct _T_TIME {