This commit is contained in:
jst 2012-12-10 19:52:41 +01:00
parent f6fa51fe2f
commit dc1fcd1d24

View File

@ -34,9 +34,9 @@ type genericConverter struct {
} }
func replicateBorder1d(x, min, max int) int { func replicateBorder1d(x, min, max int) int {
if (x < min) { if x < min {
x = min x = min
} else if (x >= max) { } else if x >= max {
x = max - 1 x = max - 1
} }
@ -49,7 +49,6 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) {
return return
} }
func (c *genericConverter) at(x, y int) colorArray { func (c *genericConverter) at(x, y int) colorArray {
r, g, b, a := c.src.At(x, y).RGBA() r, g, b, a := c.src.At(x, y).RGBA()
return colorArray{ return colorArray{