diff --git a/README.md b/README.md index ee7c2fe83..3db603014 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/gameobjects/BitmapData.js b/src/gameobjects/BitmapData.js index 331f76241..1733469a2 100644 --- a/src/gameobjects/BitmapData.js +++ b/src/gameobjects/BitmapData.js @@ -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; }