diff --git a/src/main.ts b/src/main.ts index e8f7f2e0..c92ba61a 100755 --- a/src/main.ts +++ b/src/main.ts @@ -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) {