From 305603f2896f3d34b3f412ccf652aafce9b27d06 Mon Sep 17 00:00:00 2001 From: wintermute Date: Sun, 20 Aug 2023 23:53:08 +0200 Subject: [PATCH] bugfix: change raygui.SetStyle and raygui.GetStyle to use int64 for the value --- raygui/raygui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raygui/raygui.go b/raygui/raygui.go index f70ac78..13f7717 100644 --- a/raygui/raygui.go +++ b/raygui/raygui.go @@ -263,7 +263,7 @@ func GetState() int32 { } // GuiSetStyle . -func SetStyle(control int32, property int32, value int32) { +func SetStyle(control int32, property int32, value int64) { ccontrol := C.int(control) cproperty := C.int(property) cvalue := C.int(value) @@ -271,10 +271,10 @@ func SetStyle(control int32, property int32, value int32) { } // GuiGetStyle - Get one style property -func GetStyle(control int32, property int32) int32 { +func GetStyle(control int32, property int32) int64 { ccontrol := C.int(control) cproperty := C.int(property) - return int32(C.GuiGetStyle(ccontrol, cproperty)) + return int64(C.GuiGetStyle(ccontrol, cproperty)) } // GuiWindowBox - Window Box control, shows a window that can be closed