dirty fix #58 (panic on minimizing windows)
This commit is contained in:
parent
cc4c905b49
commit
e554b1e3c1
|
@ -32,6 +32,12 @@ func (gf *GLFrame) SetBounds(bounds pixel.Rect) {
|
||||||
oldF := gf.frame
|
oldF := gf.frame
|
||||||
|
|
||||||
_, _, w, h := intBounds(bounds)
|
_, _, w, h := intBounds(bounds)
|
||||||
|
if w <= 0 {
|
||||||
|
w = 1
|
||||||
|
}
|
||||||
|
if h <= 0 {
|
||||||
|
h = 1
|
||||||
|
}
|
||||||
gf.frame = glhf.NewFrame(w, h, false)
|
gf.frame = glhf.NewFrame(w, h, false)
|
||||||
|
|
||||||
// preserve old content
|
// preserve old content
|
||||||
|
|
Loading…
Reference in New Issue