mirror of https://github.com/ImVexed/muon.git
Merge pull request #18 from puckzxz/master
Fixed issue when window height was resized to 0
This commit is contained in:
commit
acee67d510
4
muon.go
4
muon.go
|
@ -329,7 +329,9 @@ 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) {
|
||||
UlOverlayResize(ov, width, height)
|
||||
if height > 0 && width > 0 {
|
||||
UlOverlayResize(ov, width, height)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue