Skip to content

Commit ae022c2

Browse files
authored
Merge pull request rpgtkoolmv#186 from Sigureya/_maskWindow-fix
position miss
2 parents 3d02c37 + 2e16750 commit ae022c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rpg_core/WindowLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ WindowLayer.prototype._maskWindow = function(window, shift) {
227227
this._windowMask.boundsDirty = true;
228228
var rect = this._windowRect;
229229
rect.x = this.x + shift.x + window.x;
230-
rect.y = this.x + shift.y + window.y + window.height / 2 * (1 - window._openness / 255);
230+
rect.y = this.y + shift.y + window.y + window.height / 2 * (1 - window._openness / 255);
231231
rect.width = window.width;
232232
rect.height = window.height * window._openness / 255;
233233
};

0 commit comments

Comments
 (0)