Stage.smoothed was returning the opposite of its actual setting (#494)

This commit is contained in:
photonstorm
2014-02-27 21:56:47 +00:00
parent 10b3dbf74a
commit 5c30fd019f
3 changed files with 108 additions and 6 deletions
+2 -5
View File
@@ -65,7 +65,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
this.transparent = false;
/**
* @property {boolean} antialias - Anti-alias graphics (in WebGL this helps with edges, in Canvas2D it retains pixel-art quality).
* @property {boolean} antialias - Anti-alias graphics. By default scaled images are smoothed in Canvas and WebGL, set anti-alias to false to disable this globally.
* @default
*/
this.antialias = true;
@@ -531,10 +531,7 @@ Phaser.Game.prototype = {
this.context = null;
}
if (!this.antialias)
{
this.stage.smoothed = false;
}
this.stage.smoothed = this.antialias;
Phaser.Canvas.addToDOM(this.canvas, this.parent, true);
Phaser.Canvas.setTouchAction(this.canvas);
+1 -1
View File
@@ -383,7 +383,7 @@ Object.defineProperty(Phaser.Stage.prototype, "smoothed", {
get: function () {
return !!PIXI.scaleModes.LINEAR;
return !PIXI.scaleModes.LINEAR;
},