Skip to content

Commit 2492297

Browse files
authored
Merge pull request rpgtkoolmv#189 from rpgtkoolmv/fix_draw_window
Fix cannot draw window's contents or backgrounds correctly
2 parents ae022c2 + 4eda02b commit 2492297

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/rpg_core/Bitmap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,10 @@ Bitmap.prototype._setDirty = function() {
989989
Bitmap.prototype.checkDirty = function() {
990990
if (this._dirty) {
991991
this._baseTexture.update();
992+
var baseTexture = this._baseTexture;
993+
setTimeout(function() {
994+
baseTexture.update();
995+
}, 0);
992996
this._dirty = false;
993997
}
994998
};

0 commit comments

Comments
 (0)