mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 18:52:44 +01:00
examples/texti18n: remove unnecessary variables
This commit is contained in:
parent
c24ade7af9
commit
3080d361ec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user