Update C sources, add new functions
This commit is contained in:
parent
e6a1abb290
commit
a6d36a3699
98 changed files with 7964 additions and 2985 deletions
|
@ -21,9 +21,8 @@ func InitWindow(width int32, height int32, t interface{}) {
|
|||
title, ok := t.(string)
|
||||
if ok {
|
||||
ctitle := C.CString(title)
|
||||
cptitle := unsafe.Pointer(ctitle)
|
||||
defer C.free(cptitle)
|
||||
C.InitWindow(cwidth, cheight, cptitle)
|
||||
defer C.free(unsafe.Pointer(ctitle))
|
||||
C.InitWindow(cwidth, cheight, ctitle)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue