Drive the panel through drm and page flip between four scanout buffers
This commit is contained in:
@@ -58,7 +58,7 @@ type display struct {
|
||||
}
|
||||
|
||||
func newDisplay() (*display, error) {
|
||||
fb, err := openFramebuffer(fbPath)
|
||||
fb, err := openFramebuffer()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -250,7 +250,7 @@ func rateColor(gb, target float64) rgb {
|
||||
}
|
||||
}
|
||||
|
||||
func (d *display) render(v view, elapsed time.Duration, target float64, cable string) {
|
||||
func (d *display) render(v view, elapsed time.Duration, target float64, cable string) error {
|
||||
fb := d.fb
|
||||
fb.fill(uiBg)
|
||||
|
||||
@@ -267,5 +267,5 @@ func (d *display) render(v view, elapsed time.Duration, target float64, cable st
|
||||
d.errBlock(x, w, y+blockGap, v.since)
|
||||
|
||||
d.drawResetButton()
|
||||
fb.flush()
|
||||
return fb.flush()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user