lv_disp_buf_init: rename size paramter

This commit is contained in:
Gabor Kiss-Vamosi
2019-04-11 05:16:31 +02:00
parent 3d4c784c3b
commit 6c9ed1969f
2 changed files with 5 additions and 5 deletions

View File

@@ -87,16 +87,16 @@ void lv_disp_drv_init(lv_disp_drv_t * driver)
* the image to the display in the background. * the image to the display in the background.
* It lets LittlevGL to render next frame into the other buffer while previous is being * It lets LittlevGL to render next frame into the other buffer while previous is being
* sent. Set to `NULL` if unused. * sent. Set to `NULL` if unused.
* @param size size of the `buf1` and `buf2` in pixel count. * @param size_in_px_cnt size of the `buf1` and `buf2` in pixel count.
*/ */
void lv_disp_buf_init(lv_disp_buf_t * disp_buf, void * buf1, void * buf2, uint32_t size) void lv_disp_buf_init(lv_disp_buf_t * disp_buf, void * buf1, void * buf2, uint32_t size_in_px_cnt)
{ {
memset(disp_buf, 0, sizeof(lv_disp_buf_t)); memset(disp_buf, 0, sizeof(lv_disp_buf_t));
disp_buf->buf1 = buf1; disp_buf->buf1 = buf1;
disp_buf->buf2 = buf2; disp_buf->buf2 = buf2;
disp_buf->buf_act = disp_buf->buf1; disp_buf->buf_act = disp_buf->buf1;
disp_buf->size = size; disp_buf->size = size_in_px_cnt;
} }
/** /**

View File

@@ -162,9 +162,9 @@ void lv_disp_drv_init(lv_disp_drv_t * driver);
* the image to the display in the background. * the image to the display in the background.
* It lets LittlevGL to render next frame into the other buffer while previous is being * It lets LittlevGL to render next frame into the other buffer while previous is being
* sent. Set to `NULL` if unused. * sent. Set to `NULL` if unused.
* @param size size of the `buf1` and `buf2` in pixel count. * @param size_in_px_cnt size of the `buf1` and `buf2` in pixel count.
*/ */
void lv_disp_buf_init(lv_disp_buf_t * disp_buf, void * buf1, void * buf2, uint32_t size); void lv_disp_buf_init(lv_disp_buf_t * disp_buf, void * buf1, void * buf2, uint32_t size_in_px_cnt);
/** /**
* Register an initialized display driver. * Register an initialized display driver.