Skip to content

Commit

Permalink
invert y axis (ebiten use texture coord)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiepengTan committed Jun 20, 2024
1 parent d00a8fc commit 24cf535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spgdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (p *spriteDrawInfo) updateMatrix() {

img, centerX, centerY := c.needImage(p.sprite.g.fs)
centerX += p.sprite.pivot.X
centerY += p.sprite.pivot.Y
centerY -= p.sprite.pivot.Y
rect := image.Rectangle{}
rect.Min.X = 0
rect.Min.Y = 0
Expand Down

0 comments on commit 24cf535

Please sign in to comment.