diff --git a/util.go b/util.go index 9b48c40..f2502b7 100644 --- a/util.go +++ b/util.go @@ -71,7 +71,7 @@ func parseHexColor(x string) (r, g, b, a int) { } func fixp(x, y float64) fixed.Point26_6 { - return fixed.Point26_6{fixed.Int26_6(x * 64), fixed.Int26_6(y * 64)} + return fixed.Point26_6{fix(x), fix(y)} } func fix(x float64) fixed.Int26_6 {