examples/texti18n: remove unnecessary variables

This commit is contained in:
Hajime Hoshi 2023-11-15 03:54:19 +09:00
parent c24ade7af9
commit 3080d361ec

View File

@ -20,8 +20,6 @@ package main
import ( import (
"bytes" "bytes"
_ "embed" _ "embed"
"image"
"image/color"
"log" "log"
"golang.org/x/text/language" "golang.org/x/text/language"
@ -80,18 +78,6 @@ func init() {
japaneseFaceSource = s japaneseFaceSource = s
} }
var (
whiteImage = ebiten.NewImage(3, 3)
// whiteSubImage is an internal sub image of whiteImage.
// Use whiteSubImage at DrawTriangles instead of whiteImage in order to avoid bleeding edges.
whiteSubImage = whiteImage.SubImage(image.Rect(1, 1, 2, 2)).(*ebiten.Image)
)
func init() {
whiteImage.Fill(color.White)
}
const ( const (
screenWidth = 640 screenWidth = 640
screenHeight = 480 screenHeight = 480