callback fix

This commit is contained in:
ImVexed 2019-10-07 19:32:38 -05:00
parent fa29078bc6
commit 79fe390b3f
3 changed files with 7 additions and 6 deletions

View File

@ -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
)

View File

@ -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)

View File

@ -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)