bug fix
This commit is contained in:
parent
215984bf96
commit
922e8e1f9e
@ -190,11 +190,11 @@ func (dc *Context) LineTo(x, y float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) {
|
func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) {
|
||||||
x1, y1 = dc.TransformPoint(x1, y1)
|
|
||||||
x2, y2 = dc.TransformPoint(x2, y2)
|
|
||||||
if len(dc.strokePath) == 0 {
|
if len(dc.strokePath) == 0 {
|
||||||
dc.MoveTo(x1, y1)
|
dc.MoveTo(x1, y1)
|
||||||
} else {
|
} else {
|
||||||
|
x1, y1 = dc.TransformPoint(x1, y1)
|
||||||
|
x2, y2 = dc.TransformPoint(x2, y2)
|
||||||
p1 := fp(x1, y1)
|
p1 := fp(x1, y1)
|
||||||
p2 := fp(x2, y2)
|
p2 := fp(x2, y2)
|
||||||
dc.strokePath.Add2(p1, p2)
|
dc.strokePath.Add2(p1, p2)
|
||||||
|
Loading…
Reference in New Issue
Block a user