Skip to content

Commit

Permalink
Fix scale issue pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSom committed May 26, 2024
1 parent a1baab7 commit ece3e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pixi-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class PixiStats{
this.ctx = this.canvas.getContext('2d');
this.canvas.width = this.config.baseCanvasWidth;
this.canvas.height = this.config.baseCanvasHeight;
this.canvas.style.cssText = `width:${this.config.baseCanvasWidth * this.main.config.scale}px;height:${this.config.baseCanvasHeight * this.main.config.scale}px;background-color:${this.main.config.COLOR_BG}`;
this.canvas.style.cssText = `width:${this.config.baseCanvasWidth}px;height:${this.config.baseCanvasHeight}px;background-color:${this.main.config.COLOR_BG}`;

this.main.dom.appendChild(this.canvas);
this.update = this.update.bind(this);
Expand Down

0 comments on commit ece3e46

Please sign in to comment.