From 9511cf2d00e0b7fa995259824a5c346f6e38050c Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 10 Aug 2018 03:46:25 -0400 Subject: [PATCH] Removed save/restore for canvas --- src/drawer.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/drawer.js b/src/drawer.js index 24023c84..f3ecada4 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -612,14 +612,11 @@ $.Drawer.prototype = { setImageSmoothingEnabled: function(imageSmoothingEnabled){ if ( this.useCanvas ) { var context = this.context; - context.save(); context.mozImageSmoothingEnabled = imageSmoothingEnabled; context.webkitImageSmoothingEnabled = imageSmoothingEnabled; context.msImageSmoothingEnabled = imageSmoothingEnabled; context.imageSmoothingEnabled = imageSmoothingEnabled; - context.restore(); - this.viewer.forceRedraw(); } },