From d2bac0c35e8f7c2347b6bd3763d64de6e902494b Mon Sep 17 00:00:00 2001 From: hikari Date: Sat, 30 Apr 2022 13:40:38 +0300 Subject: [PATCH] sys/windows: fix build issues --- core/sys/windows/gdi32.odin | 2 +- core/sys/windows/types.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/windows/gdi32.odin b/core/sys/windows/gdi32.odin index bec5225a7..e728503d2 100644 --- a/core/sys/windows/gdi32.odin +++ b/core/sys/windows/gdi32.odin @@ -69,6 +69,6 @@ foreign gdi32 { // Windows colors are packed as ABGR RGB :: #force_inline proc "contextless" (r, g, b: u8) -> COLORREF { - res: [4]u8 = {0, rgb.b, rgb.g, rgb.r} + res: [4]u8 = {0, b, g, r} return transmute(COLORREF)res } diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index 4093fd3f9..c3e461ba0 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -55,7 +55,7 @@ UINT_PTR :: uintptr ULONG :: c_ulong UCHAR :: BYTE NTSTATUS :: c.long -COLORREF :: DWORD +COLORREF :: DWORD // Windows colors are packed as ABGR LPCOLORREF :: ^COLORREF LPARAM :: LONG_PTR WPARAM :: UINT_PTR