summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/NewKit/Macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/kernel/NewKit/Macros.h')
-rw-r--r--dev/kernel/NewKit/Macros.h2
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__