Skip to content

Commit

Permalink
Merge pull request #6906 from KamiHQ/fix-printing
Browse files Browse the repository at this point in the history
avoid apply transform twice for composite context
  • Loading branch information
yurydelendik committed Mar 11, 2016
2 parents 4784863 + 069f4b9 commit c6d2b7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {

if (this.transparentCanvas) {
this.ctx = this.compositeCtx;
this.ctx.save();
this.ctx.setTransform(1, 0, 0, 1, 0, 0); // Avoid apply transform twice
this.ctx.drawImage(this.transparentCanvas, 0, 0);
this.ctx.restore();
this.transparentCanvas = null;
}

Expand Down

0 comments on commit c6d2b7f

Please sign in to comment.