Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust: color_t 类型调整为 uint32_t #243

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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