fill recycled buffer with default rune
This commit is contained in:
parent
768702af0b
commit
454c6a0e91
@ -119,6 +119,8 @@ func (s *Screen) drawloop() {
|
|||||||
|
|
||||||
if s.buf == nil || s.buf.Width() != w || s.buf.Height() != h {
|
if s.buf == nil || s.buf.Width() != w || s.buf.Height() != h {
|
||||||
s.buf = buf2d.NewBuffer(w, h, DefaultRune)
|
s.buf = buf2d.NewBuffer(w, h, DefaultRune)
|
||||||
|
} else {
|
||||||
|
s.buf.Fill(DefaultRune)
|
||||||
}
|
}
|
||||||
|
|
||||||
rw, rh := s.Root.Layout()
|
rw, rh := s.Root.Layout()
|
||||||
|
Loading…
Reference in New Issue
Block a user