ebiten: deprecate (*Image).Size

Closes #2351
This commit is contained in:
Hajime Hoshi
2023-01-19 23:42:35 +09:00
parent 8d61d43371
commit f054a7634a
43 changed files with 111 additions and 114 deletions

View File

@@ -87,7 +87,7 @@ func (s *sprite) draw(screen *ebiten.Image) {
op := &ebiten.DrawImageOptions{}
sx, sy := s.img.Size()
sx, sy := s.img.Bounds().Dx(), s.img.Bounds().Dy()
op.GeoM.Translate(-float64(sx)/2, -float64(sy)/2)
op.GeoM.Rotate(s.angle)
op.GeoM.Scale(s.scale, s.scale)