diff options
Diffstat (limited to 'dev/kernel/NewKit')
| -rw-r--r-- | dev/kernel/NewKit/Macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/kernel/NewKit/Macros.h b/dev/kernel/NewKit/Macros.h index eda454f9..83dbc7b5 100644 --- a/dev/kernel/NewKit/Macros.h +++ b/dev/kernel/NewKit/Macros.h @@ -122,7 +122,7 @@ #define NE_UNUSED(X) ((Kernel::Void)X) #ifndef RGB -#define RGB(R, G, B) (Kernel::UInt32)(R | G << 0x8 | B << 0x10) +#define RGB(R, G, B) ((Kernel::UInt32)((0xFF << 24) | ((R) << 16) | ((G) << 8) | (B))) #endif // !RGB #ifdef __NE_AMD64__ |
