1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Remove unneeded srcOffset arguments from createRgbBuffer.

This commit is contained in:
Nicholas Nethercote 2014-01-16 18:03:17 -08:00
parent 3de5d6ad0c
commit c044652320
2 changed files with 5 additions and 6 deletions

View file

@ -439,7 +439,7 @@ var PDFImage = (function PDFImageClosure() {
if (this.needsDecode) {
this.decodeBuffer(comps);
}
var rgbBuf = this.colorSpace.createRgbBuffer(comps, 0,
var rgbBuf = this.colorSpace.createRgbBuffer(comps,
originalWidth * originalHeight, bpc);
if (originalWidth != width || originalHeight != height)
rgbBuf = PDFImage.resize(rgbBuf, this.bpc, 3, originalWidth,