From f725c68998b78b6830b7a7b46b6eb8cecbd530c0 Mon Sep 17 00:00:00 2001 From: nfnt Date: Mon, 6 Aug 2012 21:49:02 +0200 Subject: [PATCH] fixed typo, thanks liuben --- .DS_Store | Bin 0 -> 6148 bytes README.md | 3 +-- resize.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d2e0b68a3506cb00bbd4485917b12637183182ee GIT binary patch literal 6148 zcmeHK!A`2H(t1Di!o- zh?z-d-gb9hclWjFbOD6U>*N$@0jSdjD+$9ElX3A4t5{Es81x=@m}7x99x&U;_Ksat zK%U(J?(v8zUaB zJVO^(#5SHVDKo;r7)imHb2SUD>y4;yRGFbGT9S2Wj3d5#UyK{w&4O_YH+Q`aTgzs>?tK~}hLvk2GC6>tSyfn895HCwFSi0IK3a0Og}LIL?c zq;$c|FpsF84hB5}5UcD~V_SX~g_9a)hIvGe&_bjVBQ@9&BSbp;Q_IT?^N5j-V26)j zGY31N1f8AtPcK2~*+cUm0hPgnEAXcZd;&EdRT}^R literal 0 HcmV?d00001 diff --git a/README.md b/README.md index 694bd60..58870b0 100644 --- a/README.md +++ b/README.md @@ -77,5 +77,4 @@ License ======= Copyright (c) 2012 Jan Schlicht -This software is released unter the ISC license. -The license text is at +Resize is released under an MIT style license. diff --git a/resize.go b/resize.go index 04c95d8..a9bd798 100644 --- a/resize.go +++ b/resize.go @@ -104,7 +104,7 @@ func Resize(w int, h int, img image.Image, interp InterpolationFunction) image.I } } c <- 1 - }(image.Rect(b.Min.X, b.Min.Y+i*(b.Dy())/4, b.Max.X, b.Min.Y+(i+1)*(b.Dy())/4), c) + }(image.Rect(b.Min.X, b.Min.Y+i*(b.Dy())/NCPU, b.Max.X, b.Min.Y+(i+1)*(b.Dy())/NCPU), c) } for i := 0; i < NCPU; i++ {