ebiten: reorder fields as recommended by the fieldalignment utility (#2359)

This reduces the struct size from 64 to 32 bytes.
This commit is contained in:
Alexander F. Rødseth 2022-09-28 11:11:08 +02:00 committed by GitHub
parent ebbf0fbc08
commit 0d2c8b59fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,14 +32,11 @@ import (
type Image struct {
// addr holds self to check copying.
// See strings.Builder for similar examples.
addr *Image
image *ui.Image
bounds image.Rectangle
original *Image
addr *Image
image *ui.Image
original *Image
setVerticesCache map[[2]int][4]byte
bounds image.Rectangle
}
var emptyImage *Image