mirror of https://github.com/ImVexed/muon.git
Check width in case the window is borderless
This commit is contained in:
parent
58dac6e121
commit
e2343ebc27
2
muon.go
2
muon.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue