mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Now calls the correct frame resize method. Fix #3913
This commit is contained in:
parent
5da3c811f2
commit
54dbdce1c7
1 changed files with 4 additions and 1 deletions
|
@ -96,6 +96,9 @@ var TileSprite = new Class({
|
||||||
|
|
||||||
function TileSprite (scene, x, y, width, height, textureKey, frameKey)
|
function TileSprite (scene, x, y, width, height, textureKey, frameKey)
|
||||||
{
|
{
|
||||||
|
width = Math.floor(width);
|
||||||
|
height = Math.floor(height);
|
||||||
|
|
||||||
var renderer = scene.sys.game.renderer;
|
var renderer = scene.sys.game.renderer;
|
||||||
|
|
||||||
GameObject.call(this, scene, 'TileSprite');
|
GameObject.call(this, scene, 'TileSprite');
|
||||||
|
@ -470,7 +473,7 @@ var TileSprite = new Class({
|
||||||
canvas.width = this.width;
|
canvas.width = this.width;
|
||||||
canvas.height = this.height;
|
canvas.height = this.height;
|
||||||
|
|
||||||
this.frame.resize(this.width, this.height);
|
this.frame.setSize(this.width, this.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.dirty || this.renderer && this.renderer.gl)
|
if (!this.dirty || this.renderer && this.renderer.gl)
|
||||||
|
|
Loading…
Reference in a new issue