Check width in case the window is borderless

This commit is contained in:
Chris 2019-10-08 22:15:35 -04:00
parent 58dac6e121
commit e2343ebc27
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ 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 {
if height > 0 && width > 0 {
UlOverlayResize(ov, width, height)
}
}