Function
NewScreenControl
(adapter *DisplayAdapter, outputChan chan *[160][240]byte, quit chan bool)
Source from the content-addressed store, hash-verified
| 165 | } |
| 166 | |
| 167 | func NewScreenControl(adapter *DisplayAdapter, outputChan chan *[160][240]byte, quit chan bool) *ScreenControl { |
| 168 | s := new(ScreenControl) |
| 169 | s.adapter = adapter |
| 170 | s.clock = time.Tick(33 * time.Millisecond) |
| 171 | s.quit = quit |
| 172 | s.outputChan = outputChan |
| 173 | return s |
| 174 | } |
| 175 | |
| 176 | func (s *ScreenControl) Run() { |
| 177 | for { |
Tested by
no test coverage detected