Skip to content

Commit d02b62a

Browse files
committed
Update for paint fix PR
1 parent f09a2f8 commit d02b62a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sim/displayapp/LittleVgl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ void LittleVgl::SetFullRefresh(FullRefreshDirections direction) {
156156
fullRefresh = true;
157157
}
158158

159+
bool LittleVgl::IsScrolling() {
160+
return scrollDirection != LittleVgl::FullRefreshDirections::None;
161+
}
162+
159163
// glue the lvgl code to the lv-sim monitor driver
160164
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) {
161165
lv_area_t area;

sim/displayapp/LittleVgl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace Pinetime {
2727
void SetNewTouchPoint(int16_t x, int16_t y, bool contact);
2828
void CancelTap();
2929
void ClearTouchState();
30+
bool IsScrolling();
3031

3132
bool GetFullRefresh() {
3233
bool returnValue = fullRefresh;

0 commit comments

Comments
 (0)