mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove unneeded srcOffset arguments from createRgbBuffer.
This commit is contained in:
parent
3de5d6ad0c
commit
c044652320
2 changed files with 5 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue