From c839b5829a5fff32d11d9cc7ec7f5cf60d611db5 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 22 Feb 2016 22:34:11 -0500 Subject: [PATCH] refactor --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {