Skip to content

Commit 4ef7d05

Browse files
committed
fix(app): ensure minimum device pixel ratio is 2 in setSize method
1 parent bee31a1 commit 4ef7d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/services/thumbGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class ThumbGenerator {
237237
setSize(width: number, height: number) {
238238
this.size.set(width, height);
239239

240-
const ratio = globalThis.devicePixelRatio || 1;
240+
const ratio = Math.max(2, globalThis.devicePixelRatio || 1);
241241
this.renderer?.setSize(this.size.x * ratio, this.size.y * ratio, true);
242242
}
243243

0 commit comments

Comments
 (0)