How to adapt a display that can only be aligned by 4 pixels in LVGL


I’m porting LVGL for a display that can only write X-coordinate data in 4-pixel alignment. Is there a good way for LVGL to solve this problem?

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

What LVGL version are you using?

What do you want to achieve?

What have you tried so far?

I try to align the x coordinates here, but it doesn’t seem to completely solve all display problems

Code to reproduce

Screenshot and/or video

What is the name of the display?
What color depth do you want to use?
What controller and/or board are you using?