mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
BitmapData.resize fixed to update the crop property too, resolves issues with images getting cut off with BitmapData.load.
This commit is contained in:
parent
9c1f39d284
commit
883c11e377
2 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,7 @@ Version 2.0.7 - "Amadicia" - -in development-
|
|||
* AnimationManager does not update currentFrame on play until second frame (thanks @Dumtard #1041)
|
||||
* Animation now guards against _frameData being null (thanks @lucbloom #1033)
|
||||
* Tilemap.swap now accurately swaps from A to B and from B to A (thanks @noidexe #1034)
|
||||
* BitmapData.resize fixed to update the crop property too, resolves issues with images getting cut off with BitmapData.load.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -278,6 +278,9 @@ Phaser.BitmapData.prototype = {
|
|||
this.texture.width = width;
|
||||
this.texture.height = height;
|
||||
|
||||
this.texture.crop.width = width;
|
||||
this.texture.crop.height = height;
|
||||
|
||||
this.refreshBuffer();
|
||||
this.dirty = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue