mirror of https://github.com/gdamore/tcell.git
Fix simscreen.SetSize
This commit is contained in:
parent
426c2dbca3
commit
e07997cdf1
|
@ -441,8 +441,10 @@ func (s *simscreen) SetSize(w, h int) {
|
|||
newc[(row*w)+col] = s.front[(row*s.physw)+col]
|
||||
}
|
||||
}
|
||||
s.physw = w
|
||||
s.physh = h
|
||||
s.cursorx, s.cursory = -1, -1
|
||||
s.physw, s.physh = w, h
|
||||
s.front = newc
|
||||
s.back.Resize(w, h)
|
||||
s.Unlock()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue