Fixes brackets
This commit is contained in:
parent
50b86ff480
commit
d5da15e001
@ -1159,9 +1159,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
tmpCanvas = rescaleImage(imgData.data, widthScale, heightScale);
|
tmpCanvas = rescaleImage(imgData.data, widthScale, heightScale);
|
||||||
ctx.scale(widthScale, heightScale);
|
ctx.scale(widthScale, heightScale);
|
||||||
ctx.drawImage(tmpCanvas, 0, -h / heightScale);
|
ctx.drawImage(tmpCanvas, 0, -h / heightScale);
|
||||||
} else
|
} else {
|
||||||
tmpCtx.putImageData(imgData, 0, 0);
|
tmpCtx.putImageData(imgData, 0, 0);
|
||||||
ctx.drawImage(tmpCanvas, 0, -h);
|
ctx.drawImage(tmpCanvas, 0, -h);
|
||||||
|
}
|
||||||
this.restore();
|
this.restore();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user