mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 03:12:35 +01:00
Finally fix screenshot command
This commit is contained in:
parent
35a91d4ffb
commit
59dd5c7c66
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user