Finally fix screenshot command

This commit is contained in:
Bill 2021-08-05 00:11:52 -04:00
parent 35a91d4ffb
commit 59dd5c7c66

View File

@ -1008,6 +1008,8 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
this._screenOffsetY = 0;
this.render(-1, true);
this._display.mask = null;
const bounds = this._display.getBounds();
const renderTexture = RenderTexture.create({
@ -1021,6 +1023,8 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
transform: new Matrix(1, 0, 0, 1, -(bounds.x), -(bounds.y))
});
this._display.mask = this._mask;
this._noSpriteVisibilityChecking = false;
this.setScale(k, null, null, true);
this._screenOffsetX = _local_2;