Skip to content

Commit

Permalink
chore: uncomment code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Dec 1, 2023
1 parent c469fbf commit f844f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/sharre/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ export class Utils {
width = Math.min(maxPixel, Math.max(minPixel, Math.floor(screenWidth * 0.8)));
height = Math.round((naturalHeight / naturalWidth) * width);

// const size = Utils.clampClientSize({ width, height });
const size = Utils.clampClientSize({ width, height });

// width = size.width;
// height = size.height;
width = size.width;
height = size.height;

const dpr = self.devicePixelRatio || 1;
const offscreenCanvas = new OffscreenCanvas(Math.ceil(width * dpr), Math.ceil(height * dpr));
Expand Down

0 comments on commit f844f21

Please sign in to comment.