Skip to content

Commit

Permalink
Use float32 instead of float
Browse files Browse the repository at this point in the history
  • Loading branch information
samdze committed Jan 18, 2024
1 parent 41f8fbf commit 068e23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playdate/sprite.nim
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ proc getImage*(this: LCDSprite): LCDBitmap =
privateAccess(PlaydateSprite)
return this.bitmap

proc setSize*(this: LCDSprite, width: float, height: float) =
proc setSize*(this: LCDSprite, width: float32, height: float32) =
privateAccess(PlaydateSprite)
playdate.sprite.setSize(this.resource, width.cfloat, height.cfloat)

Expand Down

0 comments on commit 068e23b

Please sign in to comment.