Skip to content

Commit

Permalink
fix: pos (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red authored Oct 13, 2024
1 parent 2603dda commit da4add2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rank.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func DrawRankingCard(fontdata []byte, title string, rankinfo []*RankInfo) (img i

card.ScaleAbout(float64(cardw)/2/float64(avatar.Bounds().Dx()), float64(cardw)/2/float64(avatar.Bounds().Dy()), wspac, float64(cardh)/2)

card.DrawImageAnchored(avatar, 0, cardh/2, 0, 0.5)
card.DrawImageAnchored(avatar, int(wspac), cardh/2, 0, 0.5)
card.Identity()
card.ResetClip()

Expand Down

0 comments on commit da4add2

Please sign in to comment.