Fixed issue when window height was resized to 0

Fixes https://github.com/ImVexed/muon/issues/14
This commit is contained in:
Chris 2019-10-08 22:08:55 -04:00
parent 61fae01bfb
commit 58dac6e121
1 changed files with 3 additions and 1 deletions

View File

@ -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 {
UlOverlayResize(ov, width, height)
}
}
}