Fix simscreen.SetSize

This commit is contained in:
Joshua T Corbin 2017-12-23 20:20:35 -08:00 committed by Garrett D'Amore
parent 426c2dbca3
commit e07997cdf1
1 changed files with 4 additions and 2 deletions

View File

@ -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()
}