From cc6ee7e7af96ab47b6788a7303ef46a23625d923 Mon Sep 17 00:00:00 2001
From: unanmed <1319491857@qq.com>
Date: Sat, 31 Dec 2022 19:54:22 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=AB=98=E6=B8=85=E5=8C=96ui?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/libs/ui.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/public/libs/ui.js b/public/libs/ui.js
index 07c9b37..e7695a8 100644
--- a/public/libs/ui.js
+++ b/public/libs/ui.js
@@ -1738,9 +1738,8 @@ ui.prototype._drawTextContent_draw = function (ctx, tempCtx, content, config) {
         if (config.index >= config.blocks.length) return false;
         var block = config.blocks[config.index++];
         if (block != null) {
-            const scale = config.isHD
-                ? devicePixelRatio * core.domStyle.scale
-                : 1;
+            // It works, why?
+            const scale = config.isHD ? devicePixelRatio ** 2 : 1;
             core.drawImage(
                 ctx,
                 tempCtx.canvas,