Merge pull request #277 from wintermute-cell/master

bugfix: change raygui.SetStyle and raygui.GetStyle to use int64 for the value
This commit is contained in:
Milan Nikolic 2023-08-26 17:22:24 +02:00 committed by GitHub
commit 211002595f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,7 +263,7 @@ func GetState() int32 {
} }
// GuiSetStyle . // GuiSetStyle .
func SetStyle(control int32, property int32, value int32) { func SetStyle(control int32, property int32, value int64) {
ccontrol := C.int(control) ccontrol := C.int(control)
cproperty := C.int(property) cproperty := C.int(property)
cvalue := C.int(value) cvalue := C.int(value)
@ -271,10 +271,10 @@ func SetStyle(control int32, property int32, value int32) {
} }
// GuiGetStyle - Get one style property // GuiGetStyle - Get one style property
func GetStyle(control int32, property int32) int32 { func GetStyle(control int32, property int32) int64 {
ccontrol := C.int(control) ccontrol := C.int(control)
cproperty := C.int(property) 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 // GuiWindowBox - Window Box control, shows a window that can be closed