test: lower canvas size

This commit is contained in:
2023-11-24 01:49:21 +01:00
parent 80a7bc9dc8
commit 6e05c3927a
2 changed files with 5 additions and 5 deletions

View File

@ -510,11 +510,11 @@ export class Editor {
const dpr = window.devicePixelRatio || 1;
// Assuming the canvas takes up the whole window
canvas.width = window.innerWidth * dpr;
canvas.height = window.innerHeight * dpr;
canvas.width = window.innerWidth * dpr * 0.25;
canvas.height = window.innerHeight * dpr * 0.25;
if (ctx) {
ctx.scale(dpr, dpr);
ctx.scale(dpr * 0.5, dpr * 0.5);
}
}
}