From 4c0a6ed1c0536df139256d5a49f333592cf8a5a8 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Tue, 21 Dec 2021 17:14:18 +0100 Subject: [PATCH] Fix: Scala sbagliata --- assets/home.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/home.js b/assets/home.js index fc4afa9..2ab68ed 100644 --- a/assets/home.js +++ b/assets/home.js @@ -69,7 +69,7 @@ function updateCanvasDimensions() { $canvas.width = WIDTH * devicePixelRatio; $canvas.height = HEIGHT * devicePixelRatio; - g.scale(2, 2); + g.scale(devicePixelRatio, devicePixelRatio); } window.addEventListener('resize', () => updateCanvasDimensions()); @@ -326,7 +326,7 @@ function render() { window.addEventListener('DOMContentLoaded', () => { // $canvas.classList.remove('hide'); - render(); + render(); let i = 20; while (i > 0) {