Skip to content

Commit

Permalink
change img frame width/height value types to ints
Browse files Browse the repository at this point in the history
Leave it up to the user to round the values if necessary.
  • Loading branch information
quasilyte committed Apr 17, 2024
1 parent f1fc00a commit f7b7124
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ type ImageInfo struct {
// A path that will be used to read the resource data.
Path string

FrameWidth float64
FrameHeight float64
FrameWidth int
FrameHeight int
}

type Image struct {
Expand All @@ -106,8 +106,8 @@ type Image struct {
// An ebiten Image object initialized from the resource bytes.
Data *ebiten.Image

DefaultFrameWidth float64
DefaultFrameHeight float64
DefaultFrameWidth int
DefaultFrameHeight int
}

// RawID is a typed key for Raw resources.
Expand Down

0 comments on commit f7b7124

Please sign in to comment.