forked from joejulian/gio
headless: clear background to transparent, not white
The clear background is the most useful, and the old behaviour can be achieved by filling the entire viewport with a white paint.ColorOp. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -110,7 +110,7 @@ func (w *Window) Release() {
|
||||
func (w *Window) Frame(frame *op.Ops) error {
|
||||
return contextDo(w.ctx, func() error {
|
||||
w.dev.BindFramebuffer(w.fbo)
|
||||
w.gpu.Clear(color.NRGBA{A: 0xff, R: 0xff, G: 0xff, B: 0xff})
|
||||
w.gpu.Clear(color.NRGBA{})
|
||||
w.gpu.Collect(w.size, frame)
|
||||
return w.gpu.Frame()
|
||||
})
|
||||
|
||||
@@ -78,7 +78,7 @@ func TestClipping(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
bg := color.NRGBA{A: 0xff, R: 0xff, G: 0xff, B: 0xff}
|
||||
var bg color.NRGBA
|
||||
tests := []struct {
|
||||
x, y int
|
||||
color color.NRGBA
|
||||
|
||||
Reference in New Issue
Block a user