Some smear in my curve widget,SOS

Description

I wrote my own curve control referring to lv_chart. When the cursor moves over, there will be smear. Other controls will not.
Can you give some suggestions?

What MCU/Processor/Board and compiler are you using?

STM32F429

What LVGL version are you using?

V7.7.0

What do you want to achieve?

When the cursor moves over, there will be normal.

What have you tried so far?

lv_obj_set_click(m_curveObj,false);
or lv_obj_set_click(m_curveObj,true); do not work.

Code to reproduce

NA

Screenshot and/or video

image

Can you send a code sample, please?

I have send a message to you :smiley:

It seems to depend on other files.

Can you create a self-contained code sample that will run in the PC simulator and send that?

“Other files” contains an empty class.
On VS2017, I can’t do a mixed compilation of C and C++. :disappointed_relieved:

I tried to reproduce this problem in the simulator in C mode, but a new problem appeared: when the mouse moves into the control area, an exception will occur.

CurveCtrl.h (253 Bytes) CurveCtrl.c (7.9 KB)

In file lv_demo_widgets.c ,add test curve function
image

show cursor
image

Do you know what went wrong?