From f05b46a0d969359ec6152f2475327821d96b033b Mon Sep 17 00:00:00 2001 From: Lucinhu <78008990+lucinhu@users.noreply.github.com> Date: Wed, 26 Mar 2025 22:15:12 +0800 Subject: [PATCH] =?UTF-8?q?typo:=20=E5=88=A0=E9=99=A4sense-watcher?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BF=AE=E5=A4=8D=E7=9A=84=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E6=94=B9=E6=8E=89=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8F=8F=E8=BF=B0=20(#417)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/boards/sensecap-watcher/sensecap_watcher.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main/boards/sensecap-watcher/sensecap_watcher.cc b/main/boards/sensecap-watcher/sensecap_watcher.cc index 31b1b9b..4a67d92 100644 --- a/main/boards/sensecap-watcher/sensecap_watcher.cc +++ b/main/boards/sensecap-watcher/sensecap_watcher.cc @@ -255,18 +255,13 @@ private: .emoji_font = font_emoji_64_init(), }); - // 使每次刷新的行数是4的倍数,防止花屏 + // 使每次刷新的起始列数索引是4的倍数且列数总数是4的倍数,以满足SPD2010的要求 lv_display_add_event_cb(lv_display_get_default(), [](lv_event_t *e) { lv_area_t *area = (lv_area_t *)lv_event_get_param(e); uint16_t x1 = area->x1; uint16_t x2 = area->x2; // round the start of area down to the nearest 4N number area->x1 = (x1 >> 2) << 2; - // round the start of area down to the nearest 4N number - area->x1 = (x1 >> 2) << 2; - - // round the end of area up to the nearest 4M+3 number - area->x2 = ((x2 >> 2) << 2) + 3; // round the end of area up to the nearest 4M+3 number area->x2 = ((x2 >> 2) << 2) + 3; }, LV_EVENT_INVALIDATE_AREA, NULL);