From 58dac6e1211debde7e41b15783956564dfb6c36f Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Oct 2019 22:08:55 -0400 Subject: [PATCH] Fixed issue when window height was resized to 0 Fixes https://github.com/ImVexed/muon/issues/14 --- muon.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/muon.go b/muon.go index 3ed4c47..e5855a3 100644 --- a/muon.go +++ b/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 { + UlOverlayResize(ov, width, height) + } } }