mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Lints.
This commit is contained in:
parent
01e876f014
commit
abad94d2b6
1 changed files with 2 additions and 2 deletions
|
@ -250,13 +250,13 @@ var PDFImage = (function PDFImageClosure() {
|
|||
if (smask) {
|
||||
var sw = smask.width;
|
||||
var sh = smask.height;
|
||||
buf = new Uint8Array(sw * sh)
|
||||
buf = new Uint8Array(sw * sh);
|
||||
smask.fillGrayBuffer(buf);
|
||||
if (sw != this.width || sh != this.height)
|
||||
buf = PDFImage.resize(buf, sw, sh, this.width, this.height);
|
||||
return buf;
|
||||
} else {
|
||||
buf = new Uint8Array(width * height)
|
||||
buf = new Uint8Array(width * height);
|
||||
for (var i = 0, ii = width * height; i < ii; ++i)
|
||||
buf[i] = 255;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue