]> git.parisson.com Git - pdf.js.git/commitdiff
Optimization: don't scale when parameter is 1.0
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 8 Feb 2012 01:14:58 +0000 (17:14 -0800)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 8 Feb 2012 01:14:58 +0000 (17:14 -0800)
src/canvas.js

index 09300a67201faaed7d90aec4d2069d8b90281126..0ec92d9cfb82eb3a2dc3dbfe65989bcf00381883 100644 (file)
@@ -728,7 +728,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         if (textSelection)
           text.geom = this.getTextGeometry();
 
-        ctx.scale(fontSizeScale, fontSizeScale);
+        if (fontSizeScale != 1.0)
+          ctx.scale(fontSizeScale, fontSizeScale);
 
         var x = 0;
         for (var i = 0; i < glyphsLength; ++i) {