mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-27 13:48:50 +08:00
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]
|
newc[(row*w)+col] = s.front[(row*s.physw)+col]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s.physw = w
|
s.cursorx, s.cursory = -1, -1
|
||||||
s.physh = h
|
s.physw, s.physh = w, h
|
||||||
|
s.front = newc
|
||||||
|
s.back.Resize(w, h)
|
||||||
s.Unlock()
|
s.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user