Change the filter

This commit is contained in:
Hajime Hoshi 2014-12-18 21:59:44 +09:00
parent 60a1626724
commit 9bd0f9363c
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ func (g *Game) Update(gr ebiten.GraphicsContext) error {
func main() { func main() {
g := new(Game) g := new(Game)
var err error var err error
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterLinear) g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterNearest)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@ -55,7 +55,7 @@ func (g *Game) Update(gr ebiten.GraphicsContext) error {
func main() { func main() {
g := new(Game) g := new(Game)
var err error var err error
g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterLinear) g.gophersTexture, _, err = ebitenutil.NewTextureFromFile("images/gophers.jpg", ebiten.FilterNearest)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }