From 0509abfab6daf928bd3dba01c91906024772efea Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 12 Oct 2018 00:32:44 +0900 Subject: [PATCH] examples: Use FilterDefault at NewImage --- examples/chipmunk/main.go | 2 +- examples/sprites/main.go | 2 +- examples/spriteshd/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/chipmunk/main.go b/examples/chipmunk/main.go index 1c946f15b..719ae3d20 100644 --- a/examples/chipmunk/main.go +++ b/examples/chipmunk/main.go @@ -33,7 +33,7 @@ var ( ) func init() { - dot, _ = ebiten.NewImage(1, 1, ebiten.FilterNearest) + dot, _ = ebiten.NewImage(1, 1, ebiten.FilterDefault) dot.Fill(color.White) } diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 2e731a73c..3f5204455 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -111,7 +111,7 @@ func init() { origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault) w, h := origEbitenImage.Size() - ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest) + ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault) op := &ebiten.DrawImageOptions{} op.ColorM.Scale(1, 1, 1, 0.5) diff --git a/examples/spriteshd/main.go b/examples/spriteshd/main.go index 2e77fde67..7af850121 100644 --- a/examples/spriteshd/main.go +++ b/examples/spriteshd/main.go @@ -111,7 +111,7 @@ func init() { origEbitenImage, _ := ebiten.NewImageFromImage(img, ebiten.FilterDefault) w, h := origEbitenImage.Size() - ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest) + ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault) op := &ebiten.DrawImageOptions{} op.ColorM.Scale(1, 1, 1, 0.5)