1
0

pattern: hdpi fix

This commit is contained in:
Philip Wagner
2024-10-21 12:54:43 +02:00
parent fc247a124f
commit 8aab0fdee1

View File

@@ -25,7 +25,7 @@ function setupCanvas(canvas) {
const ctx = canvas.getContext('2d') const ctx = canvas.getContext('2d')
ctx.scale(dpr, dpr) ctx.scale(dpr, dpr)
if (canvas.width > 750) { if ((canvas.width / dpr) > 750) {
small = NORMAL_SMALL small = NORMAL_SMALL
big = NORMAL_BIG big = NORMAL_BIG
} else { } else {