diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-12 11:07:33 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-12 11:07:33 -0400 |
| commit | 925adc0782c4dd9b978a712b1b5645b5f31bf802 (patch) | |
| tree | 66590ea495c0c680c3dfcd22a55896c864ad35a7 /control.go | |
| parent | cfea745dc745dcb0af8704d7cdb50d9725714b04 (diff) | |
Fixed build errors.
Diffstat (limited to 'control.go')
| -rw-r--r-- | control.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
