Skip to content

Commit

Permalink
adjust: color_t 类型调整为 uint32_t (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only authored Nov 28, 2024
1 parent a74886b commit f65b833
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ege.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/color.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#pragma once

#include <windef.h>

#include "../include/ege/stdint.h"

#include "ege_def.h"
#include "ege_math.h"
#include "types.h"
Expand All @@ -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
Expand Down

0 comments on commit f65b833

Please sign in to comment.