examples/keyboard: Use os.Open instead of ebitenutil.OpenFile

This commit is contained in:
Hajime Hoshi 2018-03-14 03:02:54 +09:00
parent c289b13a91
commit 7061024ece

View File

@ -31,7 +31,6 @@ import (
"golang.org/x/image/font"
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil"
"github.com/hajimehoshi/ebiten/internal"
"github.com/hajimehoshi/ebiten/text"
)
@ -45,7 +44,7 @@ var (
)
func init() {
f, err := ebitenutil.OpenFile(filepath.Join("..", "..", "_resources", "fonts", "arcade_n.ttf"))
f, err := os.Open(filepath.Join("..", "..", "_resources", "fonts", "arcade_n.ttf"))
if err != nil {
log.Fatal(err)
}