From 3c9e3c57f072f28429d49187753826efe560cfc5 Mon Sep 17 00:00:00 2001 From: mnerv Date: Sun, 27 Aug 2023 23:19:29 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mnerv/he?= =?UTF-8?q?llotext@956f64f40d6b801d75cb07f5b18a59f4929d3e60=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 89648d7..6f6bc79 100644 --- a/index.html +++ b/index.html @@ -44,8 +44,8 @@ } } window.addEventListener ("resize", e => { - const width = window.innerWidth; - const height = window.innerHeight; + const width = window.innerWidth * devicePixelRatio; + const height = window.innerHeight * devicePixelRatio; Module.setCanvasSize(width, height) }, true);