1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

6248 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
586542ddce font cache test 2021-03-03 09:22:34 +01:00
Gabor Kiss-Vamosi
122f6c12be fix(disp): lv_disp_drv_update set screen size manually
Using lv_obj_set_size will trigger asserts as normally the size of the screens shouldn't be adjusted
2021-03-01 20:11:09 +01:00
Themba Dube
a42c4191a6 Merge branch 'dev' of github.com:littlevgl/lvgl into dev 2021-03-01 13:58:39 -05:00
Themba Dube
db7a6e4fac fix(disp) disp->screens isn't terminated by a null member, so use screen_cnt instead 2021-03-01 13:58:20 -05:00
Gabor Kiss-Vamosi
834895ebc2 fix(arc): fix ext. draw pad calculation of the knob 2021-03-01 19:51:06 +01:00
Gabor Kiss-Vamosi
1a30e04952 fix(theme): add smaller padding to window header 2021-03-01 19:51:06 +01:00
Gabor Kiss-Vamosi
47b8893f99 fix(mem) fix traeting data as lvgl alloacted even if LV_MEM_CUSTOM 1 2021-03-01 19:31:09 +01:00
Xiang Xiao
772e403eb0
fix(lv_*.mk): add the miss source code (#2106)
and reorder the entry to help finding the mismatch
2021-03-01 16:00:35 +01:00
Xiang Xiao
3bf5079427
fix(aysnc): don't set the timer's user data again (#2097)
* fix(async): replace all task with timer

* fix(aysnc): don't set the timer's user data again

since lv_timer_create alreqdy do the same thing
2021-03-01 15:59:51 +01:00
Xiang Xiao
4118b1e52a
fs: avoid the unnecessary memory allocation (#2098)
* fix(fs): don't allocate lv_fs_file_t in lv_fs_open

avoid the unnecessary allocation

* fix(fs): apply the similar file open/close change to dir open/close

avoid the unnecessary allocation
2021-03-01 15:59:14 +01:00
Gabor Kiss-Vamosi
293807eb27 fix issue after fixing conflits 2021-03-01 15:56:33 +01:00
Xiang Xiao
2aacbd5ddd
fix(misc): correct the comment and coding style (#2096)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-03-01 15:55:46 +01:00
Xiang Xiao
02efef12db
fix(image decoder): fix the chagne losed after merging dev-v8 (#2103)
commit 06917a6ec3bfdf12b19aede3e6df06e66d681ed7
* fix(image decoder): fix memory leak when no decoder can be used

and handle the out of memory gracefully

* fix(image decoder): zero the output fields after each iteration

to clean the stale info saved by try failed decoder and remove img_data
zero from lv_img_decoder_built_in_open since it has be done in the loop

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-03-01 15:52:04 +01:00
Gabor Kiss-Vamosi
fd34dbe056 test with LV_MEM_CUSTOM 1 too 2021-03-01 15:44:43 +01:00
Gabor Kiss-Vamosi
367e3a31df fix(mem): with LV_MEM_CUSTOM don't try to realloc &zero_mem, use malloc instead 2021-03-01 15:44:27 +01:00
Gabor Kiss-Vamosi
23a8c0b68a remove accent colors becasue they were inconsistent 2021-03-01 15:15:35 +01:00
Gabor Kiss-Vamosi
f990a5f85e use LV_COLOR_PALETTE_LIGHT_BLUE by deafult 2021-03-01 14:59:38 +01:00
Gabor Kiss-Vamosi
90d0eec5ae feat(anim): add lv_anim_set_get_value_cb 2021-03-01 13:52:57 +01:00
Xiang Xiao
b35c67c8b6
Various fix for gc module (#2102)
* fix(gc): remove the unused variables from gc

* fix(gc): correct typo(from _lv_img_defoder_ll to _lv_img_decoder_ll)

* fix(gc): change _lv_drv_ll to _lv_fsdrv_ll

since only instances fo lv_fs_drv_t can be added to this list

* fix(gc): Iterate the root variables only when they are really used

to save the memory space

* fix(image cache): move cache_temp to gc.h

and rename it to _lv_img_cache_single
2021-03-01 13:18:57 +01:00
Gabor Kiss-Vamosi
1b79a5ae32 fix(obj): swap lv_obj_move_forground/background 2021-03-01 12:12:18 +01:00
Gabor Kiss-Vamosi
16b9e3fd96 minor fixes 2021-03-01 12:04:19 +01:00
Gabor Kiss-Vamosi
2f0443b803 update lv_conf_internal.h 2021-03-01 12:03:46 +01:00
Gabor Kiss-Vamosi
27025ee6f9 fix(mem): assume &zero_mem has 0 size 2021-03-01 12:02:18 +01:00
Gabor Kiss-Vamosi
403351222e add logs + minor fixes 2021-03-01 12:00:13 +01:00
Gabor Kiss-Vamosi
bcafd8a0b0 add some more logs 2021-03-01 11:57:49 +01:00
Gabor Kiss-Vamosi
8bc6931f7f add many LV_LOG_TRACE-s 2021-02-28 20:42:48 +01:00
Gabor Kiss-Vamosi
df5a47871d add some logs 2021-02-28 15:02:00 +01:00
Gabor Kiss-Vamosi
468fdb4f74 feat(debug): add mem. monitor simalarly to perf. monitor 2021-02-28 15:01:28 +01:00
Gabor Kiss-Vamosi
6f357ea745 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
1e22db2c2c minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
bdef0c3b8b feat(obj): add LV_OBJ_FLAG_FLOATING and lv_obj_has_flag_any 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
4650132767 fix(shadow draw): fix missing column in hte middle with some sizes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
3eab2e2dc7 feat(log): add timestamp to log mesages 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
85f60bcf70 feat(calendar): add lv_calendar_header_dropdown 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
7b48fa0fc0 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
bdef86faf2 feat(style): add lv_style_get_prop_inlined and use it in the core main object style getter 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
347680a3c0 feat(dropdown): lv_dropdown_set/get_selected_highlight + minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
b1677205b0 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
950124f5a0 fix(scroll): varius fixes on lv_obj_scroll_to_view and snapping 2021-02-28 14:18:32 +01:00
Xiang Xiao
8f48cf5cc7
fix(font): Handle the out of memory gracefully in decompression case (#2100) 2021-02-27 14:07:17 +01:00
Gabor Kiss-Vamosi
0493a9aebd update lv_conf_template 2021-02-26 16:12:30 +01:00
Gabor Kiss-Vamosi
87cee2f72b minor fixes 2021-02-26 13:13:37 +01:00
Gabor Kiss-Vamosi
c9abb38e67 feat(color): add lv_color_get_palette_... functions and update the default theme accordingly 2021-02-26 13:02:06 +01:00
Gabor Kiss-Vamosi
17a619bd95 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-02-26 09:51:50 +01:00
Gabor Kiss-Vamosi
0ab6433c66 assign theme to the display + minor fixes 2021-02-26 09:51:30 +01:00
Gabor Kiss-Vamosi
8fdefa8508 fix(chart) fix warning 2021-02-25 15:38:25 +01:00
Gabor Kiss-Vamosi
c846a37adc feat(chart): trigger draw hook event on the bars of chart 2021-02-25 15:17:44 +01:00
Xiang Xiao
8c34c1533e
Fix memory module issue (#2095)
* fix(mem): reutrn NULL in lv_mem_buf_get if allocation fail

* fix(mem): refine the loop in alloc_core to simplify the logic

* fix(mem): remove the lv_mem_buf declaration from lv_mem.h

since it already declared in gc.h
2021-02-25 14:59:50 +01:00
Xiang Xiao
9a2008bfb9
Fix minor issues found in timer module (#2094)
* fix(timer): remove LV_GC_INCLUDE inclusion since it doesn't need anymore

please see commit d6ca15a74923f2e86ce1e4ee6ee83bb2bbc887b8 for more info

* fix(timer): implement lv_timer_create directly

and call it in lv_timer_create_basic

* fix(timer): exclude the return value computing from the idle time

and change handler_start and time_till_next to local variables

* fix(timer): restart the timer process loop correctly

* fix(timer): skip the count pause timer into next timeout

it's wrong to check repeat_count since the timer is always
removed from the list once the repeat_count change to zero

* fix(timer): remove zero task_deleted and task_created in lv_task_exec

since the loop in lv_task_handler already do the same thing
2021-02-25 14:58:07 +01:00
Gabor Kiss-Vamosi
8a7f9cb131 fix(style): use struct as color filter instead of pure callback for Micropython compatibility 2021-02-24 15:12:36 +01:00