Optimization: don't scale when parameter is 1.0

This commit is contained in:
notmasteryet 2012-02-07 17:14:58 -08:00
parent bd95a191b7
commit cc9035438a

View File

@ -728,6 +728,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (textSelection)
text.geom = this.getTextGeometry();
if (fontSizeScale != 1.0)
ctx.scale(fontSizeScale, fontSizeScale);
var x = 0;