From 8422923ea0ade3d822eaa40685ad5c465a630bf9 Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:39:55 +0100 Subject: Resolve paint corrupting screen scrolling --- src/displayapp/LittleVgl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/displayapp/LittleVgl.cpp') diff --git a/src/displayapp/LittleVgl.cpp b/src/displayapp/LittleVgl.cpp index c6f6f784..f9791c30 100644 --- a/src/displayapp/LittleVgl.cpp +++ b/src/displayapp/LittleVgl.cpp @@ -149,6 +149,10 @@ void LittleVgl::SetFullRefresh(FullRefreshDirections direction) { fullRefresh = true; } +bool LittleVgl::IsScrolling() { + return scrollDirection != LittleVgl::FullRefreshDirections::None; +} + void LittleVgl::FlushDisplay(const lv_area_t* area, lv_color_t* color_p) { uint16_t y1, y2, width, height = 0; -- cgit v1.2.3-70-g09d2