From 75f5849a7323fcd332446ef77f815d08c29bc166 Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Tue, 2 Apr 2019 09:12:00 -0700 Subject: [PATCH] Few comment corrections --- README.md | 2 +- src/lv_core/lv_group.h | 2 +- src/lv_hal/lv_hal_disp.h | 2 +- src/lv_objx/lv_roller.h | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d7d19c9997e0..86c0e0adbafd 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ In the most simple case you need to do these steps: ```c static lv_disp_buf_t disp_buf; static lv_color_t buf[LV_HOR_RES_MAX * 10]; /*Declare a buffer for 10 lines*/ -v_disp_buf_init(&disp_buf1, buf, NULL, LV_HOR_RES_MAX * 10); /*Initialize the display buffer*/ +lv_disp_buf_init(&disp_buf, buf, NULL, LV_HOR_RES_MAX * 10); /*Initialize the display buffer*/ ``` 4. Implement and register a function which can **copy a pixel array** to an area of your diplay: ```c diff --git a/src/lv_core/lv_group.h b/src/lv_core/lv_group.h index 7878d368843e..77779fc6e964 100644 --- a/src/lv_core/lv_group.h +++ b/src/lv_core/lv_group.h @@ -69,7 +69,7 @@ typedef struct _lv_group_t uint8_t frozen :1; /*1: can't focus to new object*/ uint8_t editing :1; /*1: Edit mode, 0: Navigate mode*/ uint8_t click_focus :1; /*1: If an object in a group is clicked by an indev then it will be focused */ - uint8_t refocus_policy :1; /*1: Focus prev if focused on deletion. 0: Focus prev if focused on deletion.*/ + uint8_t refocus_policy :1; /*1: Focus prev if focused on deletion. 0: Focus next if focused on deletion.*/ uint8_t wrap :1; /*1: Focus next/prev can wrap at end of list. 0: Focus next/prev stops at end of list.*/ } lv_group_t; diff --git a/src/lv_hal/lv_hal_disp.h b/src/lv_hal/lv_hal_disp.h index 3bd091959fee..59aae676537d 100644 --- a/src/lv_hal/lv_hal_disp.h +++ b/src/lv_hal/lv_hal_disp.h @@ -73,7 +73,7 @@ typedef struct _disp_drv_t { #endif uint32_t rotated :1; /*1: turn the display by 90 degree.*/ - /* MANDATORY: Write the internal buffer (VDB) to the display. 'lv_flush_ready()' has to be called when finished */ + /* MANDATORY: Write the internal buffer (VDB) to the display. 'lv_disp_flush_ready()' has to be called when finished */ void (*flush_cb)(struct _disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); /* OPTIONAL: Extend the invalidated areas to match with the display drivers requirements diff --git a/src/lv_objx/lv_roller.h b/src/lv_objx/lv_roller.h index 065544d01c24..d6d751a0128d 100644 --- a/src/lv_objx/lv_roller.h +++ b/src/lv_objx/lv_roller.h @@ -70,6 +70,7 @@ lv_obj_t * lv_roller_create(lv_obj_t * par, const lv_obj_t * copy); * Set the options on a roller * @param roller pointer to roller object * @param options a string with '\n' separated options. E.g. "One\nTwo\nThree" + * @param inf True: Loop through the options */ void lv_roller_set_options(lv_obj_t * roller, const char * options, bool inf);