correctly copy cropped image (Conrad Kramer)

git-svn-id: https://zxing.googlecode.com/svn/trunk@2242 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2012-03-30 20:18:03 +00:00
parent 94cae7f083
commit 6e492e54de

View file

@ -48,7 +48,7 @@ CGImageRef CGImageLuminanceSource::createImageFromBuffer
memcpy(bytes, baseAddress+top*bytesPerRow, size);
} else {
for(int y=0; y<height; y++) {
memcpy(bytes+y*bytesPerRow,
memcpy(bytes+y*newBytesPerRow,
baseAddress+left*4+(top+y)*bytesPerRow,
bytesPerRow);
}