Skip to content

Commit

Permalink
[fix/clear-canvas] fix: canvas does not clear correctly when canvas s…
Browse files Browse the repository at this point in the history
…caled
  • Loading branch information
xpadev-net committed Dec 6, 2023
1 parent ce0a2a2 commit 136b8b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ class NiconiComments {
[];
if (arrayEqual(current, last)) return false;
}
const size = this.renderer.getSize();
this.renderer.clearRect(0, 0, size.width, size.height);
this.renderer.clearRect(0, 0, config.canvasWidth, config.canvasHeight);
this.lastVpos = vpos;
this._drawVideo();
for (const plugin of plugins) {
Expand Down

0 comments on commit 136b8b4

Please sign in to comment.