From 2e167500a195e57f13dce45eeef565be9563ac48 Mon Sep 17 00:00:00 2001 From: Sigureya Date: Sat, 8 Sep 2018 19:02:10 +0900 Subject: [PATCH] position miss X is specified in the place where Y should be specified. --- js/rpg_core/WindowLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/rpg_core/WindowLayer.js b/js/rpg_core/WindowLayer.js index 02d3f432..26e1acc7 100644 --- a/js/rpg_core/WindowLayer.js +++ b/js/rpg_core/WindowLayer.js @@ -227,7 +227,7 @@ WindowLayer.prototype._maskWindow = function(window, shift) { this._windowMask.boundsDirty = true; var rect = this._windowRect; rect.x = this.x + shift.x + window.x; - rect.y = this.x + shift.y + window.y + window.height / 2 * (1 - window._openness / 255); + rect.y = this.y + shift.y + window.y + window.height / 2 * (1 - window._openness / 255); rect.width = window.width; rect.height = window.height * window._openness / 255; };