Skip to content

Commit ef49f9b

Browse files
committed
Modify value of PIXI.scaleMode.DEFAULT instead of PIXI.scaleMode.LINEAR since LINEAR and NEAREST are constants
1 parent 497b00d commit ef49f9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/Stage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,19 +358,19 @@ Object.defineProperty(Phaser.Stage.prototype, "smoothed", {
358358

359359
get: function () {
360360

361-
return !PIXI.scaleModes.LINEAR;
361+
return PIXI.scaleModes.DEFAULT === PIXI.scaleModes.LINEAR;
362362

363363
},
364364

365365
set: function (value) {
366366

367367
if (value)
368368
{
369-
PIXI.scaleModes.LINEAR = 0;
369+
PIXI.scaleModes.DEFAULT = PIXI.scaleModes.LINEAR;
370370
}
371371
else
372372
{
373-
PIXI.scaleModes.LINEAR = 1;
373+
PIXI.scaleModes.DEFAULT = PIXI.scaleModes.NEAREST;
374374
}
375375
}
376376

0 commit comments

Comments
 (0)