Change draw call to match API. Hope that helps.

This commit is contained in:
Sascha L. Teichmann 2014-09-14 22:13:31 +02:00
parent a6bbf4a8bd
commit db8c5bd8e0

View File

@ -164,8 +164,8 @@ func fuseTile(scratch *image.RGBA, job *pyramidJob) (err error) {
img := loadImage(path)
draw.Draw(scratch,
image.Rect(0, 0, 256, 256),
img, image.Pt(ofs[i][0], ofs[i][1]), draw.Src)
image.Rect(ofs[i][0], ofs[i][1], 256, 256),
img, image.ZP, draw.Src)
}
resized := resize.Resize(256, 256, scratch, resize.Bicubic)