From 78125b66db29d6ee7edcaaf330bc16c8c92afa25 Mon Sep 17 00:00:00 2001
From: Gabor Kiss-Vamosi
Date: Fri, 30 Aug 2019 10:59:04 +0200
Subject: [PATCH 1/6] Update lv_version.h
---
src/lv_version.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lv_version.h b/src/lv_version.h
index 745a7e595..c447d5620 100644
--- a/src/lv_version.h
+++ b/src/lv_version.h
@@ -16,7 +16,7 @@ extern "C" {
/*Current version of LittlevGL*/
#define LVGL_VERSION_MAJOR 6
#define LVGL_VERSION_MINOR 0
-#define LVGL_VERSION_PATCH 0
+#define LVGL_VERSION_PATCH 2
#define LVGL_VERSION_INFO ""
From 8efba7607390880d27bea7d7a1d7dc210da46fe8 Mon Sep 17 00:00:00 2001
From: Deon Marais
Date: Sun, 1 Sep 2019 15:19:14 +0200
Subject: [PATCH 2/6] Make sin table constant in lv_math.c (#1185)
---
src/lv_misc/lv_math.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lv_misc/lv_math.c b/src/lv_misc/lv_math.c
index d16a16a4b..ea332b61b 100644
--- a/src/lv_misc/lv_math.c
+++ b/src/lv_misc/lv_math.c
@@ -25,7 +25,7 @@
/**********************
* STATIC VARIABLES
**********************/
-static int16_t sin0_90_table[] = {
+static const int16_t sin0_90_table[] = {
0, 572, 1144, 1715, 2286, 2856, 3425, 3993, 4560, 5126, 5690, 6252, 6813, 7371, 7927, 8481,
9032, 9580, 10126, 10668, 11207, 11743, 12275, 12803, 13328, 13848, 14364, 14876, 15383, 15886, 16383, 16876,
17364, 17846, 18323, 18794, 19260, 19720, 20173, 20621, 21062, 21497, 21925, 22347, 22762, 23170, 23571, 23964,
From ffd4708ac3b6a537d13c7a538b722477584f4230 Mon Sep 17 00:00:00 2001
From: Gabor Kiss-Vamosi
Date: Wed, 4 Sep 2019 15:58:05 +0200
Subject: [PATCH 3/6] Remove survey
---
README.md | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/README.md b/README.md
index a90532560..d07a5b680 100644
--- a/README.md
+++ b/README.md
@@ -3,18 +3,6 @@
-
-Shape the future of LittlevGL
-
-
-
-
-
-
-It takes only 5 minutes to tell some information about how you use LittlevGL, what you like about it, what should be improved and the future directions you find reasonable.
-
-
----
From eefd9c4e0d0d434aa08c658db9c1f397e87804c6 Mon Sep 17 00:00:00 2001
From: Gabor Kiss-Vamosi
Date: Wed, 4 Sep 2019 16:06:59 +0200
Subject: [PATCH 4/6] lv_table: fix crash on copy in lv_table_create
---
src/lv_objx/lv_table.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lv_objx/lv_table.c b/src/lv_objx/lv_table.c
index ec8ebe5b8..ab0e47879 100644
--- a/src/lv_objx/lv_table.c
+++ b/src/lv_objx/lv_table.c
@@ -106,8 +106,8 @@ lv_obj_t * lv_table_create(lv_obj_t * par, const lv_obj_t * copy)
ext->cell_style[1] = copy_ext->cell_style[1];
ext->cell_style[2] = copy_ext->cell_style[2];
ext->cell_style[3] = copy_ext->cell_style[3];
- ext->col_cnt = copy_ext->col_cnt;
- ext->row_cnt = copy_ext->row_cnt;
+ lv_table_set_row_cnt(new_table, copy_ext->row_cnt);
+ lv_table_set_col_cnt(new_table, copy_ext->col_cnt);
/*Refresh the style with new signal function*/
lv_obj_refresh_style(new_table);
From a031af4f1ebf92722f935c54e79e930bc97af022 Mon Sep 17 00:00:00 2001
From: Gabor Kiss-Vamosi
Date: Thu, 12 Sep 2019 16:04:11 +0200
Subject: [PATCH 5/6] lv_list: fix the use of last_clicked_btn
---
src/lv_objx/lv_list.c | 19 +++++++++----------
src/lv_objx/lv_list.h | 3 +++
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/src/lv_objx/lv_list.c b/src/lv_objx/lv_list.c
index c6e4300ca..ef50c4afe 100644
--- a/src/lv_objx/lv_list.c
+++ b/src/lv_objx/lv_list.c
@@ -47,11 +47,7 @@ static lv_signal_cb_t img_signal;
static lv_signal_cb_t label_signal;
static lv_signal_cb_t ancestor_page_signal;
static lv_signal_cb_t ancestor_btn_signal;
-#if LV_USE_GROUP
-/*Used to make the last clicked button pressed (selected) when the list become focused and
- * `click_focus == 1`*/
-static lv_obj_t * last_clicked_btn;
-#endif
+
/**********************
* MACROS
@@ -94,6 +90,7 @@ lv_obj_t * lv_list_create(lv_obj_t * par, const lv_obj_t * copy)
#if LV_USE_GROUP
ext->last_sel = NULL;
ext->selected_btn = NULL;
+ ext->last_clicked_btn = NULL;
#endif
lv_obj_set_signal_cb(new_list, lv_list_signal);
@@ -751,10 +748,12 @@ static lv_res_t lv_list_signal(lv_obj_t * list, lv_signal_t sign, void * param)
/*Else select the clicked button*/
else {
/*Mark the last clicked button (if any) as selected because it triggered the focus*/
- if(last_clicked_btn) {
- lv_list_set_btn_selected(list, last_clicked_btn);
+ lv_list_ext_t * ext = lv_obj_get_ext_attr(list);
+ if(ext->last_clicked_btn) {
+ lv_list_set_btn_selected(list, ext->last_clicked_btn);
+ ext->last_clicked_btn = NULL;
+
} else {
- lv_list_ext_t * ext = lv_obj_get_ext_attr(list);
if(ext->last_sel) {
/* Select the last used button */
lv_list_set_btn_selected(list, ext->last_sel);
@@ -770,8 +769,8 @@ static lv_res_t lv_list_signal(lv_obj_t * list, lv_signal_t sign, void * param)
#if LV_USE_GROUP
/*De-select the selected btn*/
lv_list_set_btn_selected(list, NULL);
- last_clicked_btn = NULL; /*button click will be set if click happens before focus*/
lv_list_ext_t * ext = lv_obj_get_ext_attr(list);
+ ext->last_clicked_btn = NULL; /*button click will be set if click happens before focus*/
ext->selected_btn = NULL;
#endif
} else if(sign == LV_SIGNAL_GET_EDITABLE) {
@@ -861,7 +860,7 @@ static lv_res_t lv_list_btn_signal(lv_obj_t * btn, lv_signal_t sign, void * para
/* If `click_focus == 1` then LV_SIGNAL_FOCUS need to know which button triggered the focus
* to mark it as selected (pressed state)*/
- last_clicked_btn = btn;
+ ext->last_clicked_btn = btn;
#endif
if(lv_indev_is_dragging(lv_indev_get_act()) == false && ext->single_mode) {
lv_list_btn_single_select(btn);
diff --git a/src/lv_objx/lv_list.h b/src/lv_objx/lv_list.h
index 7b7927841..5a8c6ee4c 100644
--- a/src/lv_objx/lv_list.h
+++ b/src/lv_objx/lv_list.h
@@ -61,6 +61,9 @@ typedef struct
#if LV_USE_GROUP
lv_obj_t * last_sel; /* The last selected button. It will be reverted when the list is focused again */
lv_obj_t * selected_btn; /* The button is currently being selected*/
+ /*Used to make the last clicked button pressed (selected) when the list become focused and
+ * `click_focus == 1`*/
+ lv_obj_t * last_clicked_btn;
#endif
} lv_list_ext_t;
From 88bda09f5f1f1c25c6e675e5cb689e3a9008d4ab Mon Sep 17 00:00:00 2001
From: Gabor Kiss-Vamosi
Date: Sat, 14 Sep 2019 11:24:48 +0200
Subject: [PATCH 6/6] btnm: fix keyboard navigation
---
src/lv_objx/lv_btnm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lv_objx/lv_btnm.c b/src/lv_objx/lv_btnm.c
index f9b83b6cf..cf3b882ae 100644
--- a/src/lv_objx/lv_btnm.c
+++ b/src/lv_objx/lv_btnm.c
@@ -863,7 +863,7 @@ static lv_res_t lv_btnm_signal(lv_obj_t * btnm, lv_signal_t sign, void * param)
for(area_below = ext->btn_id_pr; area_below < ext->btn_cnt; area_below++) {
if(ext->button_areas[area_below].y1 > ext->button_areas[ext->btn_id_pr].y1 &&
pr_center >= ext->button_areas[area_below].x1 &&
- pr_center <= ext->button_areas[area_below].x2 + style->body.padding.left) {
+ pr_center <= ext->button_areas[area_below].x2 + style->body.padding.inner) {
break;
}
}
@@ -884,7 +884,7 @@ static lv_res_t lv_btnm_signal(lv_obj_t * btnm, lv_signal_t sign, void * param)
for(area_above = ext->btn_id_pr; area_above >= 0; area_above--) {
if(ext->button_areas[area_above].y1 < ext->button_areas[ext->btn_id_pr].y1 &&
- pr_center >= ext->button_areas[area_above].x1 - style->body.padding.left &&
+ pr_center >= ext->button_areas[area_above].x1 - style->body.padding.inner &&
pr_center <= ext->button_areas[area_above].x2) {
break;
}