diff --git a/README.md b/README.md index e90d9fe7..01c87f7a 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ Significant API changes: * When adding a Group if the parent value is `null` the Group won't be added to the World, so you can add it when ready. If parent is `undefined` it's added by default. * The Keyboard class has had a complete overhaul. Phaser.Key objects are created automatically, there are fixes against duration and keys reset properly on visibility loss. * Keyboard.removeKey has been removed. The way the new keyboard manager works means it's no longer required. +* When a game un-pauses (from a visibility loss) it resets all Input components. New features: diff --git a/src/system/StageScaleMode.js b/src/system/StageScaleMode.js index 702b1f08..6702c69e 100644 --- a/src/system/StageScaleMode.js +++ b/src/system/StageScaleMode.js @@ -257,7 +257,7 @@ Phaser.StageScaleMode.prototype = { return; } - if (typeof antialias !== 'undefined') + if (typeof antialias !== 'undefined' && this.game.renderType === Phaser.CANVAS) { Phaser.Canvas.setSmoothingEnabled(this.game.context, antialias); } diff --git a/src/utils/Debug.js b/src/utils/Debug.js index 457d9f48..8ef5490a 100644 --- a/src/utils/Debug.js +++ b/src/utils/Debug.js @@ -324,6 +324,14 @@ Phaser.Utils.Debug.prototype = { }, + /** + * Renders Phaser.Key object information. + * @method Phaser.Utils.Debug#renderKey + * @param {Phaser.Key} key - The Key to render the information for. + * @param {number} x - X position of the debug info to be rendered. + * @param {number} y - Y position of the debug info to be rendered. + * @param {string} [color='rgb(255,255,255)'] - color of the debug info to be rendered. (format is css color string). + */ renderKey: function (key, x, y, color) { if (this.context === null) @@ -338,7 +346,6 @@ Phaser.Utils.Debug.prototype = { this.splitline('Key:', key.keyCode, 'isDown:', key.isDown); this.splitline('justPressed:', key.justPressed(), 'justReleased:', key.justReleased()); this.splitline('Time Down:', key.timeDown.toFixed(0), 'duration:', key.duration.toFixed(0)); - this.line('Repeats: ' + key.repeats); this.stop();