refactor
This commit is contained in:
parent
b224ca0761
commit
c839b5829a
2
util.go
2
util.go
@ -71,7 +71,7 @@ func parseHexColor(x string) (r, g, b, a int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fixp(x, y float64) fixed.Point26_6 {
|
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 {
|
func fix(x float64) fixed.Int26_6 {
|
||||||
|
Loading…
Reference in New Issue
Block a user