The TextStyle.resolution property is no longer read from the Game Config. You can still set it via the Text Style config to a value other than 1, but it will default to this now.

This commit is contained in:
Richard Davey 2020-09-12 11:55:06 +01:00
parent 0acdf4373f
commit d6f5aabb7e

View file

@ -240,10 +240,10 @@ var Text = new Class({
*/
this.dirty = false;
// If resolution wasn't set, then we get it from the game config
// If resolution wasn't set, force it to 1
if (this.style.resolution === 0)
{
this.style.resolution = scene.sys.game.config.resolution;
this.style.resolution = 1;
}
/**