using tmpCtx instead of ctx

This commit is contained in:
notmasteryet 2011-08-24 22:02:44 -05:00
parent dacd239ed2
commit 824d6e4e71

2
pdf.js
View File

@ -5115,7 +5115,7 @@ var CanvasGraphics = (function() {
if (imageObj.imageMask) { if (imageObj.imageMask) {
var fillColor = this.current.fillColor; var fillColor = this.current.fillColor;
tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ? tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ?
fillColor.getPattern(ctx) : fillColor; fillColor.getPattern(tmpCtx) : fillColor;
tmpCtx.fillRect(0, 0, w, h); tmpCtx.fillRect(0, 0, w, h);
} }
var imgData = tmpCtx.getImageData(0, 0, w, h); var imgData = tmpCtx.getImageData(0, 0, w, h);