mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
examples/texti18n: remove unnecessary variables
This commit is contained in:
parent
c24ade7af9
commit
3080d361ec
@ -20,8 +20,6 @@ package main
|
||||
import (
|
||||
"bytes"
|
||||
_ "embed"
|
||||
"image"
|
||||
"image/color"
|
||||
"log"
|
||||
|
||||
"golang.org/x/text/language"
|
||||
@ -80,18 +78,6 @@ func init() {
|
||||
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 (
|
||||
screenWidth = 640
|
||||
screenHeight = 480
|
||||
|
Loading…
Reference in New Issue
Block a user