Skip to content

Commit 8899edd

Browse files
committed
BitmapData.clear now automatically calls BitmapData.update at the end of it.
1 parent 5a275f1 commit 8899edd

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ can be controlled per-input mode.
295295
* The SoundManager now detects if the browser is running under iOS9 and uses a touchend callback to unlock the audio subsystem. Previous versions of iOS (and Android) still use touchstart. This fixes Apple's screw-up with regard to changing the way Web Audio should be triggered in Mobile Safari. Thanks Apple (thanks @MyCatCarlos for the heads-up #2095)
296296
* InputHandler.validForInput now checks if the game object has `input.enabled` set to `false` and doesn't validate it for input if that's the case.
297297
* The default Button.onOverMouseOnly value has changed from `false` to `true`. If you used this in your touch enabled games then please be aware of this change (#2083)
298+
* BitmapData.clear now automatically calls BitmapData.update at the end of it.
298299

299300
### Bug Fixes
300301

src/gameobjects/BitmapData.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ Phaser.BitmapData.prototype = {
457457

458458
this.context.clearRect(x, y, width, height);
459459

460+
this.update();
461+
460462
this.dirty = true;
461463

462464
return this;

0 commit comments

Comments
 (0)