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:
Elias Naur
2021-05-03 10:15:19 +02:00
parent 23a839a29d
commit 2c07b2dc0e
52 changed files with 106 additions and 85 deletions
+1 -1
View File
@@ -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