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)