mirror of https://github.com/ImVexed/muon.git
Fixed issue when window height was resized to 0
Fixes https://github.com/ImVexed/muon/issues/14
This commit is contained in:
parent
61fae01bfb
commit
58dac6e121
2
muon.go
2
muon.go
|
@ -329,9 +329,11 @@ func (w *Window) addFunction(name string) {
|
|||
|
||||
func resizeCallback(ov ULOverlay) func(userData unsafe.Pointer, width uint32, height uint32) {
|
||||
return func(userData unsafe.Pointer, width uint32, height uint32) {
|
||||
if height > 0 {
|
||||
UlOverlayResize(ov, width, height)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func serveHandler(handler http.Handler) (string, error) {
|
||||
ln, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
|
|
Loading…
Reference in New Issue