diff --git a/examples/create-react-app/go.mod b/examples/create-react-app/go.mod index 8bd61f3..9f3b4f3 100644 --- a/examples/create-react-app/go.mod +++ b/examples/create-react-app/go.mod @@ -3,6 +3,6 @@ module cra-go go 1.13 require ( - github.com/ImVexed/muon v0.0.0-20191007190516-f77a06ba12f4 + github.com/ImVexed/muon v0.0.0-20191008002922-fa29078bc6e0 golang.org/x/net v0.0.0-20190930134127-c5a3c61f89f3 ) diff --git a/examples/create-react-app/main.go b/examples/create-react-app/main.go index 913c880..d1c6ea7 100644 --- a/examples/create-react-app/main.go +++ b/examples/create-react-app/main.go @@ -12,10 +12,11 @@ func main() { fileHandler := http.FileServer(webfiles.HTTP) cfg := &muon.Config{ - Title: "Hello, World!", - Height: 500, - Width: 500, - Hint: 2 | 4, + Title: "Hello, World!", + Height: 500, + Width: 500, + Tilted: true, + Resizeable: true, } m := muon.New(cfg, fileHandler) diff --git a/muon.go b/muon.go index 33e5c31..9b6506e 100644 --- a/muon.go +++ b/muon.go @@ -78,7 +78,7 @@ func New(cfg *Config, handler http.Handler) *Window { w.ov = UlCreateOverlay(w.wnd, w.cfg.Height, w.cfg.Width, w.cfg.X, w.cfg.Y) - UlWindowSetResizeCallback(w.wnd, resizeCallback(w.ov), unsafe.Pointer(&w.ov)) + UlWindowSetResizeCallback(w.wnd, resizeCallback(w.ov), nil) w.view = UlOverlayGetView(w.ov)