1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Rename some variables.

This commit is contained in:
Brendan Dahl 2011-12-19 16:31:47 -08:00
parent db4a11e568
commit 5cfe97611f
2 changed files with 8 additions and 8 deletions

View file

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

View file

@ -167,12 +167,12 @@ var PDFImage = (function PDFImageClosure() {
};
PDFImage.prototype = {
get maxWidth() {
get drawWidth() {
if (!this.smask)
return this.width;
return Math.max(this.width, this.smask.width);
},
get maxHeight() {
get drawHeight() {
if (!this.smask)
return this.height;
return Math.max(this.height, this.smask.height);