diff --git a/src/core/renderers/canvas/CanvasRenderer.js b/src/core/renderers/canvas/CanvasRenderer.js index bd46915..fe48c22 100644 --- a/src/core/renderers/canvas/CanvasRenderer.js +++ b/src/core/renderers/canvas/CanvasRenderer.js @@ -212,6 +212,20 @@ this.context = tempContext; }; +CanvasRenderer.prototype.resize = function (w, h) +{ + SystemRenderer.prototype.resize.call(this, w, h); + + //reset the scale mode.. oddly this seems to be reset?? + this.currentScaleMode = CONST.SCALE_MODES.DEFAULT + + if(this.smoothProperty) + { + this.context[this.smoothProperty] = (this.currentScaleMode === CONST.SCALE_MODES.LINEAR); + } + +}; + /** * Maps Pixi blend modes to canvas blend modes. *