From 3aa0442030d7ba894b0ccbe77eb1bf0f0e6197bb Mon Sep 17 00:00:00 2001 From: yixy-only Date: Thu, 28 Nov 2024 23:41:09 +0800 Subject: [PATCH] =?UTF-8?q?adjust:=20color=5Ft=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=20uint32=5Ft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/ege.h | 2 +- src/color.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/ege.h b/include/ege.h index e71c8fe..7ad0342 100644 --- a/include/ege.h +++ b/include/ege.h @@ -276,7 +276,7 @@ enum message_mouse #ifndef EGE_COLOR_T_TYPEDEF #define EGE_COLOR_T_TYPEDEF -typedef unsigned int color_t; +typedef uint32_t color_t; #endif enum alpha_type diff --git a/src/color.h b/src/color.h index 5168e36..036d6dd 100644 --- a/src/color.h +++ b/src/color.h @@ -1,6 +1,9 @@ #pragma once #include + +#include "../include/ege/stdint.h" + #include "ege_def.h" #include "ege_math.h" #include "types.h" @@ -17,7 +20,7 @@ namespace ege #ifndef EGE_COLOR_T_TYPEDEF #define EGE_COLOR_T_TYPEDEF -typedef unsigned int color_t; +typedef uint32_t color_t; #endif typedef struct COLORHSL