graphics: Compile error file on image_test.go

This commit is contained in:
Hajime Hoshi 2018-03-11 04:18:41 +09:00
parent 066a346831
commit fbcda8d5a6

View File

@ -540,11 +540,11 @@ func TestImageEdge(t *testing.T) {
}
}
img0.ReplacePixels(pixels)
img1, _ := NewImage(img1Width, img1Height, FilterDefault)
red := color.RGBA{0xff, 0, 0, 0xff}
transparent := color.RGBA{0, 0, 0, 0}
for _, f := range []Filter{FilterNearest, FilterLinear} {
img1, _ := NewImage(img1Width, img1Height, f)
for a := 0; a < 360; a += 5 {
img1.Clear()
op := &DrawImageOptions{}
@ -554,7 +554,6 @@ func TestImageEdge(t *testing.T) {
op.GeoM.Translate(-float64(img0Width)/2, -float64(img0Height)/2)
op.GeoM.Rotate(float64(a) * math.Pi / 180)
op.GeoM.Translate(img1Width/2, img1Height/2)
op.Filter = f
img1.DrawImage(img0, op)
for j := 0; j < img1Height; j++ {
for i := 0; i < img1Width; i++ {