Removed save/restore for canvas

This commit is contained in:
Peter 2018-08-10 03:46:25 -04:00
parent d892dcfbc7
commit 9511cf2d00

View File

@ -612,14 +612,11 @@ $.Drawer.prototype = {
setImageSmoothingEnabled: function(imageSmoothingEnabled){ setImageSmoothingEnabled: function(imageSmoothingEnabled){
if ( this.useCanvas ) { if ( this.useCanvas ) {
var context = this.context; var context = this.context;
context.save();
context.mozImageSmoothingEnabled = imageSmoothingEnabled; context.mozImageSmoothingEnabled = imageSmoothingEnabled;
context.webkitImageSmoothingEnabled = imageSmoothingEnabled; context.webkitImageSmoothingEnabled = imageSmoothingEnabled;
context.msImageSmoothingEnabled = imageSmoothingEnabled; context.msImageSmoothingEnabled = imageSmoothingEnabled;
context.imageSmoothingEnabled = imageSmoothingEnabled; context.imageSmoothingEnabled = imageSmoothingEnabled;
context.restore();
this.viewer.forceRedraw(); this.viewer.forceRedraw();
} }
}, },