pattern: hdpi fix
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user