diff --git a/src/main.ts b/src/main.ts index 2b96ca11..e8f7f2e0 100755 --- a/src/main.ts +++ b/src/main.ts @@ -94,6 +94,12 @@ class NiconiComments { this.renderer = renderer; this.renderer.setLineWidth(getConfig(config.contextLineWidth, false)); + const rendererSize = this.renderer.getSize(); + this.renderer.setScale( + rendererSize.width / config.canvasWidth, + rendererSize.height / config.canvasHeight, + ); + let formatType = options.format; //Deprecated Warning