diff --git a/app/x11.go b/app/x11.go index 625099d..374ac66 100644 --- a/app/x11.go +++ b/app/x11.go @@ -29,8 +29,6 @@ import ( "golang.org/x/mobile/geom" ) -var callbacks []Callbacks - func run(cbs []Callbacks) { runtime.LockOSThread() callbacks = cbs @@ -99,7 +97,7 @@ func onDraw() { //export onStart func onStart() { - stateInit(callbacks) + stateStart(callbacks) } //export onStop