From 925adc0782c4dd9b978a712b1b5645b5f31bf802 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Aug 2018 11:07:33 -0400 Subject: Fixed build errors. --- control.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'control.go') diff --git a/control.go b/control.go index 03cf181..23a8ddf 100644 --- a/control.go +++ b/control.go @@ -130,8 +130,12 @@ func (c *ControlBase) Disable() { // This function only works on Controls that use ControlBase. func ControlFromLibui(c uintptr) Control { // comma-ok form to avoid creating nil entries - c, _ := controls[(*C.uiControl)(unsafe.Pointer(c))] - return c + cc, _ := controls[(*C.uiControl)(unsafe.Pointer(c))] + return cc +} + +func touiControl(c uintptr) *C.uiControl { + return (*C.uiControl)(unsafe.Pointer(c)) } // LibuiFreeText allows implementations of Control -- cgit v1.2.3