Custom drawing callback in V9

Hello, I wanted to know how to override the drawing callbacks in the current version v9?. I know that previously it was done like this:
for example,
draw_buf->draw_ctx->draw_line = lv_draw_eve_line.

The drawing callbacks are now unified into two functions:
evaluate_cb: Evaluate whether draw_unit supports this drawing method.
dispatch_cb: Execute the dispatched drawing task.
For details, please refer to: https://github.com/lvgl/lvgl/blob/master/src/draw/sdl/lv_draw_sdl.c

1 Like

Thanks! :grinning: