fix:优化分辨率为 1080×1920

This commit is contained in:
Zhukj
2026-04-20 17:35:59 +08:00
parent c718a44503
commit b001f24ebd

View File

@@ -1963,9 +1963,9 @@
const ctx = canvas.getContext('2d');
const container = imageContainer;
// 4K 超高清分辨率 2160×3840
const TARGET_WIDTH = 2160;
const TARGET_HEIGHT = 3840;
// 高清分辨率 1080×1920
const TARGET_WIDTH = 1080;
const TARGET_HEIGHT = 1920;
// 显示尺寸(用于计算缩放比例)
const displayWidth = container.clientWidth;