From 4cdc55af91f006999637fc786e6e3df5ea913164 Mon Sep 17 00:00:00 2001 From: hikari Date: Fri, 6 May 2022 18:23:52 +0300 Subject: [PATCH] sys/windows: fix RGB macro again --- core/sys/windows/gdi32.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sys/windows/gdi32.odin b/core/sys/windows/gdi32.odin index 551d42417..898766361 100644 --- a/core/sys/windows/gdi32.odin +++ b/core/sys/windows/gdi32.odin @@ -68,5 +68,5 @@ foreign gdi32 { } RGB :: #force_inline proc "contextless" (r, g, b: u8) -> COLORREF { - return COLORREF(r) | COLORREF(WORD(g) << 8) | COLORREF(DWORD(b) << 16) + return transmute(COLORREF)[4]u8{r, g, b, 0} }