lvgl / lvgl

Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
https://lvgl.io
MIT License
17.51k stars 3.3k forks source link

How to use rounder_cb in LVGL9.1 #6411

Closed jie326513988 closed 5 months ago

jie326513988 commented 5 months ago

Introduce the problem

I have an 8-color fully reflective screen. I need to update a whole row each time. The X axis needs to start from 0. The update of some widgets will not start from 0. But there seems to be no rounder_cb related function available in LVGL9.1?

Acknowledgements

Proposal

No response

liamHowatt commented 5 months ago

Have you considered using LV_DISPLAY_RENDER_MODE_DIRECT and keeping track of the affected lines in your flush_cb until lv_display_flush_is_last() is true and then drawing those full lines?

kisvegabor commented 5 months ago

You need the LV_EVENT_INVALIDATE_AREA event of the display. See the description here.

jie326513988 commented 5 months ago

您需要显示的事件。请参阅此处的说明。LV_EVENT_INVALIDATE_AREA

OK, thank you very much