aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-02 11:35:44 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-02 11:35:44 +0000
commit57c7ae1bd9eb2160afc0cf6d85c3e16781e9a439 (patch)
tree37e73cb9bf27cd9aa693ac80de6d7b074ffd15ca
parente154489f013c66627975a6ba0d8d4c67b8ea33f9 (diff)
Minor fixes to formatting and types
-rw-r--r--core/sys/windows/comctl32.odin8
-rw-r--r--core/sys/windows/xinput.odin6
2 files changed, 7 insertions, 7 deletions
diff --git a/core/sys/windows/comctl32.odin b/core/sys/windows/comctl32.odin
index 3418c7649..28fab53be 100644
--- a/core/sys/windows/comctl32.odin
+++ b/core/sys/windows/comctl32.odin
@@ -1609,9 +1609,9 @@ LPTV_ITEMEXW :: LPTVITEMEXW
TVINSERTSTRUCTW :: struct {
hParent: HTREEITEM,
hInsertAfter: HTREEITEM,
- _: struct #raw_union {
- itemex: TVITEMEXW,
- item: TV_ITEMW,
+ using _: struct #raw_union {
+ itemex: TVITEMEXW,
+ item: TV_ITEMW,
},
}
TV_INSERTSTRUCTW :: TVINSERTSTRUCTW
@@ -1703,7 +1703,7 @@ TreeView_Expand :: #force_inline proc "system" (hwnd: HWND, hitem: HTREEITEM, co
}
TreeView_GetItemRect :: #force_inline proc "system" (hwnd: HWND, hitem: HTREEITEM, prc: ^RECT, code: UINT) -> BOOL {
alias: struct #raw_union {
- rc: ^RECT,
+ rc: ^RECT,
hitem: ^HTREEITEM,
}
diff --git a/core/sys/windows/xinput.odin b/core/sys/windows/xinput.odin
index c0c758c41..f8fd45bc9 100644
--- a/core/sys/windows/xinput.odin
+++ b/core/sys/windows/xinput.odin
@@ -57,9 +57,9 @@ XINPUT_GAMEPAD_BUTTON_BIT :: enum WORD {
XINPUT_GAMEPAD_BUTTON :: distinct bit_set[XINPUT_GAMEPAD_BUTTON_BIT;WORD]
// Gamepad thresholds
-XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE: SHORT : 7849
-XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE: SHORT : 8689
-XINPUT_GAMEPAD_TRIGGER_THRESHOLD: SHORT : 30
+XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE : SHORT : 7849
+XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE : SHORT : 8689
+XINPUT_GAMEPAD_TRIGGER_THRESHOLD : SHORT : 30
// Flags to pass to XInputGetCapabilities
// Corresponds to log2(XINPUT_FLAG_...)