BitmapData.resize fixed to update the crop property too, resolves issues with images getting cut off with BitmapData.load.

This commit is contained in:
photonstorm 2014-07-18 03:33:17 +01:00
parent 9c1f39d284
commit 883c11e377
2 changed files with 4 additions and 0 deletions

View file

@ -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.

View file

@ -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;
}