Skip to content

Commit

Permalink
fix: render wrong after changing dpr
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Dec 17, 2024
1 parent 8d0be92 commit 748c372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/stage_manger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class StageManager {
};

private onViewportSizeChange = (width: number, height: number) => {
this.app.renderer.resize(width, height);
this.app.renderer.resize(width, height, getDevicePixelRatio());
};

private bindEvent() {
Expand Down

0 comments on commit 748c372

Please sign in to comment.