From 43b66cd47319fd81275463bed63a097edf70ee0a Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Wed, 8 Oct 2025 00:12:43 +0100 Subject: [PATCH] Update for paint fix PR --- sim/displayapp/LittleVgl.cpp | 4 ++++ sim/displayapp/LittleVgl.h | 1 + 2 files changed, 5 insertions(+) diff --git a/sim/displayapp/LittleVgl.cpp b/sim/displayapp/LittleVgl.cpp index 5a0b2c1..cf77240 100644 --- a/sim/displayapp/LittleVgl.cpp +++ b/sim/displayapp/LittleVgl.cpp @@ -156,6 +156,10 @@ void LittleVgl::SetFullRefresh(FullRefreshDirections direction) { fullRefresh = true; } +bool LittleVgl::IsScrolling() { + return scrollDirection != LittleVgl::FullRefreshDirections::None; +} + // glue the lvgl code to the lv-sim monitor driver void DrawBuffer(lv_disp_drv_t *disp_drv, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t* data, size_t size) { lv_area_t area; diff --git a/sim/displayapp/LittleVgl.h b/sim/displayapp/LittleVgl.h index 54505b3..e19c9b5 100644 --- a/sim/displayapp/LittleVgl.h +++ b/sim/displayapp/LittleVgl.h @@ -27,6 +27,7 @@ namespace Pinetime { void SetNewTouchPoint(int16_t x, int16_t y, bool contact); void CancelTap(); void ClearTouchState(); + bool IsScrolling(); bool GetFullRefresh() { bool returnValue = fullRefresh;