]> git.parisson.com Git - pdf.js.git/commitdiff
Rename some variables.
authorBrendan Dahl <brendan.dahl@gmail.com>
Tue, 20 Dec 2011 00:31:47 +0000 (16:31 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Tue, 20 Dec 2011 00:31:47 +0000 (16:31 -0800)
src/evaluator.js
src/image.js

index cc9f6c07da3dc87241a25c4da910fc13b619a72c..2905565daee80df75a75b095d7f55a0c8328623a 100644 (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);
       }
index 98248a2726ba73a58a74cee21440f77e69e7f63e..29bad4d8a240ff64babbecc1df7a34bfeb672089 100644 (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);