The CanvasRenderer no longer reads or uses the Game Config resolution property.

This commit is contained in:
Richard Davey 2020-09-12 11:56:11 +01:00
parent b63cc75154
commit 37a9261ac4

View file

@ -86,7 +86,6 @@ var CanvasRenderer = new Class({
this.config = {
clearBeforeRender: game.config.clearBeforeRender,
backgroundColor: game.config.backgroundColor,
resolution: game.config.resolution,
antialias: game.config.antialias,
roundPixels: game.config.roundPixels
};
@ -229,8 +228,6 @@ var CanvasRenderer = new Class({
*
* @param {Phaser.Structs.Size} gameSize - The default Game Size object. This is the un-modified game dimensions.
* @param {Phaser.Structs.Size} baseSize - The base Size object. The game dimensions multiplied by the resolution. The canvas width / height values match this.
* @param {Phaser.Structs.Size} displaySize - The display Size object. The size of the canvas style width / height attributes.
* @param {number} [resolution] - The Scale Manager resolution setting.
*/
onResize: function (gameSize, baseSize)
{