From b2479ebff2fa9acfbfd9b5c80c6934f9c6b9535e Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Wed, 18 Sep 2024 09:28:25 +0800 Subject: [PATCH] Update td_background.js --- web/javascript/td_background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/javascript/td_background.js b/web/javascript/td_background.js index 7509183..fb4b4d1 100644 --- a/web/javascript/td_background.js +++ b/web/javascript/td_background.js @@ -59,7 +59,8 @@ LGraphCanvas.prototype.drawBackCanvas = function () { //reset in case of error if (!this.viewport) { ctx.restore() - ctx.setTransform(1, 0, 0, 1, 0, 0) + // ctx.setTransform(1, 0, 0, 1, 0, 0) + ctx.setTransform(window.devicePixelRatio, 0, 0, window.devicePixelRatio, 0, 0) } this.visible_links.length = 0