From f7ea85ccb2b7cb6cf8ec73e737a36397da645c3f Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Thu, 16 Oct 2025 16:08:08 +0200 Subject: [PATCH] forgot to use tabs, as always --- core/sys/windows/types.odin | 16 ++++++++-------- core/sys/windows/user32.odin | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index a838fa359..61e5d7820 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -2992,17 +2992,17 @@ CRITICAL_SECTION :: struct { } SYNCHRONIZATION_BARRIER :: struct { - Reserved1: DWORD, - Reserved2: DWORD, - Reserved3: [2]ULONG_PTR, - Reserved4: DWORD, - Reserved5: DWORD, + Reserved1: DWORD, + Reserved2: DWORD, + Reserved3: [2]ULONG_PTR, + Reserved4: DWORD, + Reserved5: DWORD, } SYNCHRONIZATION_BARRIER_FLAG :: enum { - SPIN_ONLY = 0, - BLOCK_ONLY = 1, - NO_DELETE = 2, + SPIN_ONLY = 0, + BLOCK_ONLY = 1, + NO_DELETE = 2, } SYNCHRONIZATION_BARRIER_FLAGS :: distinct bit_set[SYNCHRONIZATION_BARRIER_FLAG; DWORD] diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index 51cbde4ae..4eb389f6b 100644 --- a/core/sys/windows/user32.odin +++ b/core/sys/windows/user32.odin @@ -399,11 +399,11 @@ MAKEINTRESOURCEW :: #force_inline proc "contextless" (#any_int i: int) -> LPWSTR } RAWINPUT_ALIGN :: proc(x: uintptr) -> uintptr { - return (x + size_of(uintptr) - 1) & ~uintptr(size_of(uintptr) - 1) + return (x + size_of(uintptr) - 1) & ~uintptr(size_of(uintptr) - 1) } NEXTRAWINPUTBLOCK :: proc(ptr: ^RAWINPUT) -> ^RAWINPUT { - return cast(^RAWINPUT)RAWINPUT_ALIGN(uintptr(ptr) + uintptr(ptr.header.dwSize)) + return cast(^RAWINPUT)RAWINPUT_ALIGN(uintptr(ptr) + uintptr(ptr.header.dwSize)) } Monitor_From_Flags :: enum DWORD {