Skip to content

Commit

Permalink
Fix: x,y -> y,x
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Sep 4, 2022
1 parent e495cd2 commit 2cee55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (p *picture) handleText(text *string) {
}

func (p *picture) newline() {
p.pt.X = fixed.Int26_6(p.padding+p.line_spacing) << 6
p.pt.Y += p.c.PointToFixed(p.fontSize)
p.pt.X = fixed.Int26_6(p.padding) << 6
p.pt.Y += p.c.PointToFixed(p.fontSize + float64(p.line_spacing))
}

func (p *picture) NextLineDistance() int {
Expand Down

0 comments on commit 2cee55a

Please sign in to comment.