Fixed full-screen anti-alias issue (#478).

This commit is contained in:
photonstorm 2014-02-24 20:33:22 +00:00
parent d9cadc70ac
commit 36df5516dd
3 changed files with 10 additions and 2 deletions

View file

@ -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:

View file

@ -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);
}

View file

@ -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();