From ba5347563615b15952a1881d699a16b5c9e89d03 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 11 Feb 2018 03:31:30 +0900 Subject: [PATCH] examples: Bug fix: import image/png explicitly (#500) --- examples/blocks/blocks/gamescene.go | 1 + examples/blocks/blocks/piece.go | 1 + examples/blocks/blocks/titlescene.go | 1 + examples/keyboard/main.go | 1 + examples/platformer/main.go | 1 + examples/ui/main.go | 1 + 6 files changed, 6 insertions(+) diff --git a/examples/blocks/blocks/gamescene.go b/examples/blocks/blocks/gamescene.go index 7120d92a8..d50f598b4 100644 --- a/examples/blocks/blocks/gamescene.go +++ b/examples/blocks/blocks/gamescene.go @@ -19,6 +19,7 @@ package blocks import ( "image/color" _ "image/jpeg" + _ "image/png" "math/rand" "strconv" "time" diff --git a/examples/blocks/blocks/piece.go b/examples/blocks/blocks/piece.go index ec26e0281..e8d5bbc89 100644 --- a/examples/blocks/blocks/piece.go +++ b/examples/blocks/blocks/piece.go @@ -18,6 +18,7 @@ package blocks import ( "image" + _ "image/png" "github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten/ebitenutil" diff --git a/examples/blocks/blocks/titlescene.go b/examples/blocks/blocks/titlescene.go index 7d3510076..709b18b49 100644 --- a/examples/blocks/blocks/titlescene.go +++ b/examples/blocks/blocks/titlescene.go @@ -18,6 +18,7 @@ package blocks import ( "image/color" + _ "image/png" "github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten/ebitenutil" diff --git a/examples/keyboard/main.go b/examples/keyboard/main.go index 5b38e6ed9..075ca36b1 100644 --- a/examples/keyboard/main.go +++ b/examples/keyboard/main.go @@ -17,6 +17,7 @@ package main import ( + _ "image/png" "log" "strconv" diff --git a/examples/platformer/main.go b/examples/platformer/main.go index d76f76b57..467232196 100644 --- a/examples/platformer/main.go +++ b/examples/platformer/main.go @@ -18,6 +18,7 @@ package main import ( "fmt" + _ "image/png" "github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten/ebitenutil" diff --git a/examples/ui/main.go b/examples/ui/main.go index 474a86743..89260d3d9 100644 --- a/examples/ui/main.go +++ b/examples/ui/main.go @@ -19,6 +19,7 @@ package main import ( "image" "image/color" + _ "image/png" "log" "strings"