Initialize quit chan of simscreen

PollEvent should return nil when Fini is called
This commit is contained in:
itchyny 2018-04-03 00:17:51 +09:00 committed by Garrett D'Amore
parent d46cfaf648
commit 2548ddfbd8
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ type simscreen struct {
func (s *simscreen) Init() error {
s.evch = make(chan Event, 10)
s.quit = make(chan struct{})
s.fillchar = 'X'
s.fillstyle = StyleDefault
s.mouse = false