From 6c9ed1969f9b5e7a69c6b1bc62f36943cd8983fe Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 11 Apr 2019 05:16:31 +0200 Subject: [PATCH] lv_disp_buf_init: rename size paramter --- src/lv_hal/lv_hal_disp.c | 6 +++--- src/lv_hal/lv_hal_disp.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lv_hal/lv_hal_disp.c b/src/lv_hal/lv_hal_disp.c index 5ec49d1a7..8e38c1a87 100644 --- a/src/lv_hal/lv_hal_disp.c +++ b/src/lv_hal/lv_hal_disp.c @@ -87,16 +87,16 @@ void lv_disp_drv_init(lv_disp_drv_t * driver) * the image to the display in the background. * It lets LittlevGL to render next frame into the other buffer while previous is being * 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)); disp_buf->buf1 = buf1; disp_buf->buf2 = buf2; disp_buf->buf_act = disp_buf->buf1; - disp_buf->size = size; + disp_buf->size = size_in_px_cnt; } /** diff --git a/src/lv_hal/lv_hal_disp.h b/src/lv_hal/lv_hal_disp.h index 46263aefb..ed4a2c7da 100644 --- a/src/lv_hal/lv_hal_disp.h +++ b/src/lv_hal/lv_hal_disp.h @@ -162,9 +162,9 @@ void lv_disp_drv_init(lv_disp_drv_t * driver); * the image to the display in the background. * It lets LittlevGL to render next frame into the other buffer while previous is being * 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.