Fix wrong calculation of second adjust parameter.

This commit is contained in:
jst 2013-11-23 18:38:06 +01:00
parent d9287fbcb6
commit f8ec710330
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func Resize(width, height uint, img image.Image, interp InterpolationFunction) i
resultImg := image.NewRGBA64(image.Rect(0, 0, int(0.7+oldWidth/scaleX), int(0.7+oldHeight/scaleY)))
b = resultImg.Bounds()
adjust = 0.5 * ((oldWidth-1.0)/scaleY - float32(b.Dx()-1))
adjust = 0.5 * ((oldHeight-1.0)/scaleY - float32(b.Dy()-1))
for i := 0; i < n; i++ {
go func(b image.Rectangle, c chan int) {