Fix: Scala sbagliata

main-old
Antonio De Lucreziis 3 years ago
parent 79c7cd9642
commit 4c0a6ed1c0

@ -69,7 +69,7 @@ function updateCanvasDimensions() {
$canvas.width = WIDTH * devicePixelRatio; $canvas.width = WIDTH * devicePixelRatio;
$canvas.height = HEIGHT * devicePixelRatio; $canvas.height = HEIGHT * devicePixelRatio;
g.scale(2, 2); g.scale(devicePixelRatio, devicePixelRatio);
} }
window.addEventListener('resize', () => updateCanvasDimensions()); window.addEventListener('resize', () => updateCanvasDimensions());

Loading…
Cancel
Save