From b173fe55d6a621412c5f5896f1563a0375c29d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Mon, 30 Mar 2026 21:05:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20calculateMaxScroll?= =?UTF-8?q?=20=E5=89=8D=E5=90=91=E5=A3=B0=E6=98=8E=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/graphics/draw/NodeListRenderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/firmware-2.7.15.567b8ea/src/graphics/draw/NodeListRenderer.cpp b/code/firmware-2.7.15.567b8ea/src/graphics/draw/NodeListRenderer.cpp index afc78c7..8a36672 100644 --- a/code/firmware-2.7.15.567b8ea/src/graphics/draw/NodeListRenderer.cpp +++ b/code/firmware-2.7.15.567b8ea/src/graphics/draw/NodeListRenderer.cpp @@ -55,6 +55,9 @@ static unsigned long lastUpPressTime = 0; static unsigned long lastDownPressTime = 0; #define DOUBLE_CLICK_THRESHOLD_MS 400 +// 前向声明 +int calculateMaxScroll(int totalEntries, int visibleRows); + // ============================= // Mode Control Functions (manual UP/DOWN control) // =============================