From 8aab0fdee14a95d571739c5306448147b586e9ec Mon Sep 17 00:00:00 2001 From: Philip Wagner Date: Mon, 21 Oct 2024 12:54:43 +0200 Subject: [PATCH] pattern: hdpi fix --- site/templates/home.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/templates/home.php b/site/templates/home.php index 48ca8bd..0728db7 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -25,7 +25,7 @@ function setupCanvas(canvas) { const ctx = canvas.getContext('2d') ctx.scale(dpr, dpr) - if (canvas.width > 750) { + if ((canvas.width / dpr) > 750) { small = NORMAL_SMALL big = NORMAL_BIG } else {