From 4eda02b18d713e8ec6bab36062f7ffb3bdd7f1ac Mon Sep 17 00:00:00 2001 From: krmbn0576 Date: Thu, 11 Oct 2018 01:53:33 +0900 Subject: [PATCH] Fix cannot draw window's contents or backgrounds correctly --- js/rpg_core/Bitmap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/rpg_core/Bitmap.js b/js/rpg_core/Bitmap.js index 069e835f..401618e9 100644 --- a/js/rpg_core/Bitmap.js +++ b/js/rpg_core/Bitmap.js @@ -989,6 +989,10 @@ Bitmap.prototype._setDirty = function() { Bitmap.prototype.checkDirty = function() { if (this._dirty) { this._baseTexture.update(); + var baseTexture = this._baseTexture; + setTimeout(function() { + baseTexture.update(); + }, 0); this._dirty = false; } };