mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 15:08:31 +00:00
Fixed full-screen anti-alias issue (#478).
This commit is contained in:
parent
d9cadc70ac
commit
36df5516dd
3 changed files with 10 additions and 2 deletions
|
@ -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.
|
* 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.
|
* 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.
|
* 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:
|
New features:
|
||||||
|
|
|
@ -257,7 +257,7 @@ Phaser.StageScaleMode.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof antialias !== 'undefined')
|
if (typeof antialias !== 'undefined' && this.game.renderType === Phaser.CANVAS)
|
||||||
{
|
{
|
||||||
Phaser.Canvas.setSmoothingEnabled(this.game.context, antialias);
|
Phaser.Canvas.setSmoothingEnabled(this.game.context, antialias);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
renderKey: function (key, x, y, color) {
|
||||||
|
|
||||||
if (this.context === null)
|
if (this.context === null)
|
||||||
|
@ -338,7 +346,6 @@ Phaser.Utils.Debug.prototype = {
|
||||||
this.splitline('Key:', key.keyCode, 'isDown:', key.isDown);
|
this.splitline('Key:', key.keyCode, 'isDown:', key.isDown);
|
||||||
this.splitline('justPressed:', key.justPressed(), 'justReleased:', key.justReleased());
|
this.splitline('justPressed:', key.justPressed(), 'justReleased:', key.justReleased());
|
||||||
this.splitline('Time Down:', key.timeDown.toFixed(0), 'duration:', key.duration.toFixed(0));
|
this.splitline('Time Down:', key.timeDown.toFixed(0), 'duration:', key.duration.toFixed(0));
|
||||||
this.line('Repeats: ' + key.repeats);
|
|
||||||
|
|
||||||
this.stop();
|
this.stop();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue