Swap in the Riverdi RVT70 panel, flip the rotation, and stop ^C orphaning harness runs
This commit is contained in:
@@ -56,11 +56,11 @@ type framebuffer struct {
|
||||
}
|
||||
|
||||
func (fb *framebuffer) offset(x, y int) int {
|
||||
return drm.Offset(x, y, fb.stride, fb.pw)
|
||||
return drm.Offset(x, y, fb.stride, fb.ph)
|
||||
}
|
||||
|
||||
func (fb *framebuffer) fromPanel(x, y int) (int, int) {
|
||||
return y, fb.pw - 1 - x
|
||||
return fb.ph - 1 - y, x
|
||||
}
|
||||
|
||||
func cardResources(fd int) (crtcs, conns []uint32, err error) {
|
||||
@@ -364,7 +364,7 @@ func (fb *framebuffer) rect(x0, y0, w, h int, c rgb) {
|
||||
}
|
||||
span := fb.pixelRun((y1-y0)*4, c)
|
||||
for x := x0; x < x1; x++ {
|
||||
copy(fb.back[fb.offset(x, y1-1):], span)
|
||||
copy(fb.back[fb.offset(x, y0):], span)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user