From 949c3801046fbd7a6aaac890fa7a3223c60d9ddd Mon Sep 17 00:00:00 2001 From: xingluo Date: Sun, 21 Dec 2025 05:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20player.lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.lua b/player.lua index a465ed5..1f35721 100644 --- a/player.lua +++ b/player.lua @@ -31,7 +31,7 @@ local function drawFrame(frame, term) -- 计算图像的尺寸 -- 假设所有行具有相同的长度,取第一行的长度作为图像宽度 - local imageWidth, imageHeight = #frame[1][1], #frame + local imageWidth, imageHeight = #frame[1][1] - 1, #frame -- 计算居中的x和y偏移量 local xOffset = math.max(math.floor((termWidth - imageWidth) / 2), 0)