From f33b4ecd3ee04d3f42e754574ebcd42e8c4ef572 Mon Sep 17 00:00:00 2001 From: Alex Macafee Date: Wed, 31 Jul 2024 18:48:16 +1000 Subject: [PATCH 1/3] Update Raygui Style set/get functions --- vendor/raylib/raygui.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/raylib/raygui.odin b/vendor/raylib/raygui.odin index 8cda9c072..8a9d4d7cd 100644 --- a/vendor/raylib/raygui.odin +++ b/vendor/raylib/raygui.odin @@ -236,8 +236,8 @@ foreign lib { // Style set/get functions - GuiSetStyle :: proc(control: GuiControl, property: GuiStyleProp, value: c.int) --- // Set one style property - GuiGetStyle :: proc(control: GuiControl, property: GuiStyleProp) -> c.int --- // Get one style property + GuiSetStyle :: proc(control: GuiControl, property: c.int, value: c.int) --- // Set one style property + GuiGetStyle :: proc(control: GuiControl, property: c.int) -> c.int --- // Get one style property // Styles loading functions From 92831d7ca3493d964e7883ba754d021ea5259612 Mon Sep 17 00:00:00 2001 From: Alex Macafee Date: Wed, 31 Jul 2024 18:58:43 +1000 Subject: [PATCH 2/3] Remove GuiStyleProp --- vendor/raylib/raygui.odin | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vendor/raylib/raygui.odin b/vendor/raylib/raygui.odin index 8a9d4d7cd..cab18ff8e 100644 --- a/vendor/raylib/raygui.odin +++ b/vendor/raylib/raygui.odin @@ -28,13 +28,6 @@ when ODIN_OS == .Windows { RAYGUI_VERSION :: "4.0" -// Style property -GuiStyleProp :: struct { - controlId: u16, - propertyId: u16, - propertyValue: c.int, -} - // Gui control state GuiState :: enum c.int { STATE_NORMAL = 0, From 1f2ab84e828d058019d760f8a2549ca6158e4555 Mon Sep 17 00:00:00 2001 From: Alex Macafee Date: Wed, 31 Jul 2024 19:08:08 +1000 Subject: [PATCH 3/3] Use GuiControlProperty instead of c.int --- vendor/raylib/raygui.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/raylib/raygui.odin b/vendor/raylib/raygui.odin index cab18ff8e..bcbb364da 100644 --- a/vendor/raylib/raygui.odin +++ b/vendor/raylib/raygui.odin @@ -229,8 +229,8 @@ foreign lib { // Style set/get functions - GuiSetStyle :: proc(control: GuiControl, property: c.int, value: c.int) --- // Set one style property - GuiGetStyle :: proc(control: GuiControl, property: c.int) -> c.int --- // Get one style property + GuiSetStyle :: proc(control: GuiControl, property: GuiControlProperty, value: c.int) --- // Set one style property + GuiGetStyle :: proc(control: GuiControl, property: GuiControlProperty) -> c.int --- // Get one style property // Styles loading functions