lv_draw_buf_init() function
Initialize a draw buf with the given buffer and parameters. Clear draw buffer flag to zero.
Arguments
draw_buf
the draw buf to initialize
w
the buffer width in pixels
h
the buffer height in pixels
stride
the stride in bytes. Use 0 for automatic calculation
data
the buffer used for drawing. Unaligned `data` will be aligned internally
data_size
the size of the buffer in bytes
Return value
return LV_RESULT_OK on success, LV_RESULT_INVALID otherwise