Repaired Minor issues

This commit is contained in:
Peter 2018-08-08 20:05:46 -04:00
parent 9968025782
commit d892dcfbc7

View File

@ -611,14 +611,16 @@ $.Drawer.prototype = {
*/ */
setImageSmoothingEnabled: function(imageSmoothingEnabled){ setImageSmoothingEnabled: function(imageSmoothingEnabled){
if ( this.useCanvas ) { if ( this.useCanvas ) {
this.context.mozImageSmoothingEnabled = imageSmoothingEnabled; var context = this.context;
this.context.webkitImageSmoothingEnabled = imageSmoothingEnabled; context.save();
this.context.msImageSmoothingEnabled = imageSmoothingEnabled; context.mozImageSmoothingEnabled = imageSmoothingEnabled;
this.context.imageSmoothingEnabled = imageSmoothingEnabled; context.webkitImageSmoothingEnabled = imageSmoothingEnabled;
context.msImageSmoothingEnabled = imageSmoothingEnabled;
context.imageSmoothingEnabled = imageSmoothingEnabled;
this.context.restore(); context.restore();
this.viewer.world.draw(); this.viewer.forceRedraw();
} }
}, },