1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Fix nits.

This commit is contained in:
Brendan Dahl 2011-12-18 17:29:08 -08:00
parent ee4504c3bf
commit 03ec82ba62
2 changed files with 9 additions and 7 deletions

View file

@ -221,13 +221,15 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
fn = 'paintImageXObject';
PDFImage.buildImage(function(imageObj) {
var mw = imageObj.maxWidth;
var mh = imageObj.maxHeight;
var imgData = {
width: imageObj.maxWidth,
height: imageObj.maxHeight,
data: new Uint8Array(imageObj.maxWidth * imageObj.maxHeight * 4)
width: mw,
height: mh,
data: new Uint8Array(mw * mh * 4)
};
var pixels = imgData.data;
imageObj.fillRgbaBuffer(pixels, imageObj.maxWidth, imageObj.maxHeight);
imageObj.fillRgbaBuffer(pixels, mw, mh);
handler.send('obj', [objId, 'Image', imgData]);
}, handler, xref, resources, image, inline);
}