Mariotaku
fc25194ed5
feat(draw): add draw_bg callback to draw_ctx #2934 ( #2935 )
...
* this is for #2934
reduced usage of blend mode
introduced draw_bg for draw_ctx
* fixed formatting
2021-12-22 19:03:44 +01:00
Gabor Kiss-Vamosi
4d61f38020
fix(label): dot not add dots if the label height > 1 font line height
...
fixes : #2907
2021-12-22 17:55:47 +01:00
Gabor Kiss-Vamosi
d3b7b4acfd
chore(draw): add lv_draw_sw_wait_for_finish
2021-12-22 17:01:36 +01:00
xennex22
935caa64e4
fix: fix parameter order in function prototypes ( #2929 )
...
* Fixed inconsistent header for find_track_end()
* Fixed inconsistent header for lv_tileview_add_tile()
* Made ptr const in lv_tlsf_free()
* Made ptr const in lv_tlsf_free()
* Corrected lv_bar_set_value() calls
* Corrected use of bool for lv_anim_enable_t
* Fixed uninitialised variable for performance monitor
* Undo fix
2021-12-21 20:09:49 +01:00
Gabor Kiss-Vamosi
4b37052613
chore: fix warnings
2021-12-21 16:18:06 +01:00
Gabor Kiss-Vamosi
11b54a2086
chore: fix warnings
2021-12-21 16:06:11 +01:00
Gabor Kiss-Vamosi
db53ea925c
arch(draw): allow replacing the draw engine
...
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
guoweilkd
0831b6ba76
fix(style):add const qualifier for lv_style_get_prop() ( #2933 )
2021-12-21 15:09:17 +01:00
Gabor Kiss-Vamosi
1cb9778914
chore run code formatter
2021-12-21 13:39:19 +01:00
Gabor Kiss-Vamosi
740d7400dd
chore(conf): do not enable demos by default
2021-12-21 13:31:05 +01:00
guoweilkd
8315eb1ca4
feat(txt): add used_width parameter to _lv_txt_get_next_line() ( #2898 )
2021-12-21 10:37:02 +01:00
Gabor Kiss-Vamosi
0788d91899
fix(mem/perf monitor): fix issue introduced in #2910
...
fixes : #2932
2021-12-21 10:31:26 +01:00
Paul
28d06b0354
fix(dropdown): in lv_dropdpwn_get_selected_str handle if there are no options ( #2925 )
...
* fix lv_dropdown_get_selected_str
* fix lv_dropdown_get_selected_str
* fix lv_dropdown_get_selected_str
2021-12-20 15:57:03 +01:00
Gabor Kiss-Vamosi
d2316447c5
fix(theme): fix theme initialization issue introduced in 6e0072479
2021-12-20 15:37:19 +01:00
Gabor Kiss-Vamosi
fa9340c45f
fix(roller): snap on press lost
...
fixes #2916
2021-12-20 15:09:32 +01:00
geert-KLA-BE
6e00724797
fix: lv_deinit/lv_init crash or hang ( #2910 )
...
* Fix themes that are not correctly initialized after lv_deinit
* Fix performance & memory monitoring not correctly initialized after lv_deinit & lv_init
* Apply code formatting fixes
* Fix build errors
* Fix build errors
* Fix formatting
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2021-12-20 14:05:06 +01:00
Man, Jianting (Meco)
70778fb9e4
fix: removed string format warnings for int32_t and uint32_t ( #2924 )
...
* fix:Removed string format warnings for int32_t and uint32_t
re-handle #2722
* feat(rt-thread): add the option of built-in examples
2021-12-20 09:52:07 +01:00
Man, Jianting (Meco)
01daed356a
fix(lv_fs_win32): add missing include of <stdio.h> ( #2918 )
2021-12-18 14:11:23 -05:00
Man, Jianting (Meco)
d85f6324a7
chore replace LittlevGL references with LVGL ( #2913 )
2021-12-17 20:52:46 -05:00
Gabor Kiss-Vamosi
53ececc5ec
feat(obj): add lv_obj_get_event_user_data()
2021-12-17 14:58:23 +01:00
Gabor Kiss-Vamosi
70327bdb2d
feat(obj) add LV_OBJ_FLAG_SCROLL_WITH_ARROW
2021-12-17 14:58:23 +01:00
Gabor Kiss-Vamosi
5658cc9444
experiement
2021-12-17 14:58:23 +01:00
Jakob Vukalović
5eb11dc34f
fix: use unsigned integer literal for bit shifing. ( #2888 )
...
Fixes hicpp-signed-bitwise error.
2021-12-16 22:18:24 +01:00
Gabor Kiss-Vamosi
a3b22128ad
chore: run code formatter
2021-12-16 20:55:36 +01:00
Gabor Kiss-Vamosi
6f40db2752
chore(conf) update lv_conf_template.h with demos
2021-12-16 20:52:18 +01:00
xaowang96
350e15a12e
chore(lottie) move rlottie_capi.h to lv_rlottie.c ( #2902 )
...
fix(lottie) invalidate image src after delete rlottie
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com >
Change-Id: Ie8ec726663335925ae9f25f2428097c2f948892e
2021-12-15 14:27:09 +01:00
_VIFEXTech
8a2c670be4
feat(others) add monkey test ( #2885 )
...
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration
* feat(refr) add reset of FPS statistics
* fix(conf) mismatched macro judgment
* feat(others) add monkey test
Signed-off-by: FASTSHIFT <vifextech@foxmail.com >
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
* fix(monkey) use lv_memset_00 to initialize monkey config
* fix(monkey) random upper limit value
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
* feat(examples) add monkey test example
* feat(docs) add monkey test description
* feat(monkey) add user_data
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
* docs(monkey) add instructions
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
* fix(monkey) EX -> EXAMPLE
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
* feat(monkey) add comments to monkey config
* docs(monkey) update usage
* feat(Kconfig) add monkey test configuration
* fix(monkey) rand() -> lv_rand()
* feat(example) add button monkey test
* docs(monkey) add button introduction
Signed-off-by: FASTSHIFT <vifextech@foxmail.com >
* fix(monkey) obj -> monkey
Signed-off-by: FASTSHIFT <vifextech@foxmail.com >
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2021-12-14 20:55:45 +01:00
Bartosz Gołaszewski
050ee4848f
fix(qrcodegen) add brackets around assert calls ( #2897 )
...
Add brackets to fix build errors on platforms which define assert as an empty macro.
2021-12-14 08:34:59 -05:00
Gabor Kiss-Vamosi
cb7fc2bb59
fix(dropdown) be sure the list is the top object on the screen
...
fixes #2893
2021-12-13 20:26:24 +01:00
Gabor Kiss-Vamosi
9810920fc5
fix(event): crash if an object was deleted in an event
...
fixes : #2886
2021-12-10 13:40:31 +01:00
SgtPepper
c2b0343431
fix(list) guard image creation with LV_USE_IMG ( #2881 )
2021-12-09 09:47:21 -05:00
Neo
a2e4dfdce2
fix(snapshot): make fake display size big enough to avoid align issue. ( #2883 )
...
Signed-off-by: Neo Xu <neo.xu1990@gmail.com >
Change-Id: I5a5e39f15b816bc281a6b9fb348a2adebb947368
2021-12-08 18:57:30 +01:00
_VIFEXTech
01973c2242
fix(sdl) correct makefile ( #2884 )
...
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2021-12-08 09:19:31 -05:00
Gabor Kiss-Vamosi
d47cd1d7fe
fix(btnmatrix): keep the selected button even on release
...
fixes : #2858
2021-12-07 15:38:11 +01:00
Carlos Diaz
559c2cdc9e
test(switch): add initial unit test ( #2794 )
...
* test(switch): Add test file and state at creation test
* test(switch): Event handler called only once per click
* test(switch): Add test state change when event bubbling is enabled
* test(switch): Cleanup event bubbling test
* tests(switch): Update memory test and add basic animation test
* test(switch) Add helper to click on switch
* test(switch) Add basic test for knob size calculation
* misc(switch) Replace switch knob rounding error magic number with define
* test(switch) Improve animation test
Properly wait for 50ms after clicking on the switch using lv_test_indev_wait and also assert on switch state after the first and second clicks
* test(switch) cleanup
* misc(switch) Cleanup
* switch: Expose _LV_SWITCH_KNOB_EXT_AREA_CORRECTION value
So we can use it when testing extra draw size
2021-12-07 13:49:26 +01:00
Neo
e50950683d
fix(draw): fix set_px_cb memory write overflow crash. ( #2882 )
2021-12-07 13:46:02 +01:00
Gabor Kiss-Vamosi
43729d1502
fix(build) fix sdl build with make
...
fixes 1281abef9e (commitcomment-61235260)
2021-12-06 10:44:23 +01:00
guoweilkd
5a49c06833
fix(freetype): fix memset error ( #2877 )
2021-12-03 13:08:06 +01:00
Gabor Kiss-Vamosi
9c676421ff
fix(align) fix LV_SIZE_CONTENT size calculation with not LEFT or TOP alignment
2021-12-03 12:25:34 +01:00
guoweilkd
c43519e659
fix(span): fix align and break word ( #2861 )
...
* fix(span):break word error under utf-8 encoding
* fix(span):fix txt align
2021-12-03 10:41:25 +01:00
X-Ryl669
0564b93d0e
perf(color): add faster lv_color_hex function ( #2864 )
...
* Add faster lv_color_hex method to convert from ARGB32 to lv_color_t, bypassing lv_color_make and component extraction
* Update src/misc/lv_color.h
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2021-12-03 10:22:13 +01:00
Gavin Li
222af5ad4a
fix(refr): swap buffers only on the last area with direct mode ( #2867 )
...
* fix(refr): avoid swapping buffers every area in direct mode
* Update src/core/lv_refr.c
* Update src/core/lv_refr.c
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2021-12-03 09:45:05 +01:00
Gabor Kiss-Vamosi
29a9cd7257
chore code format
2021-12-03 09:41:48 +01:00
Gabor Kiss-Vamosi
a369f18c57
fix(theme) make the basic theme really basic
2021-12-03 09:39:12 +01:00
X-Ryl669
cd26e0fc2a
feat(rlottie): add animation control options ( #2857 )
...
* Add support for ARGB32 to RGBA5658 format conversion required by LVGL
* Add animation control for rlottie animation
* Add support for composable play control and event sending upon reaching end of animation.
* Add protection against multiple event posting upon animation ending
* Actually pause the timer is the animation is paused. Resume on playing again.
* Improve documentation for the additional features
* Stop the timer if not looping and we've reached the end of the animation in the provided direction
* Fix various defects and improve documentation
* Add support for swapped RGB565 format too
* Let pause actually pause without messing the current frame index in the animation.
* Set invalid destination frame upon construction so it's possible to pause from frame 0.
* Set impossible destination frame index
So it's updated on first pause
2021-12-03 09:28:27 +01:00
ckielstra
91fc579ee7
docs fix spelling, parameter descriptions, comments, etc ( #2865 )
2021-12-02 08:44:05 -05:00
Duco Sebel
5ed1eec68c
fix(arc) free memory when drawing full-circle arc ( #2869 )
2021-12-02 08:37:46 -05:00
geert-KLA-BE
6282996764
feat(lv_hal_indev): add missing lv_indev_delete() ( #2854 )
...
* feat(lv_hal_indev): Add missing lv_indev_delete()
* feat(lv_hal_indev): Add missing lv_indev_delete() (fix formatting)
2021-12-01 15:37:44 +01:00
geert-KLA-BE
ecabf77d58
fix(indev): update lv_indev_drv_update to free the read_timer ( #2850 )
...
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer
The read timer was not freed and recreated. The display was also not checked to be NULL.
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting)
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting 2)
2021-12-01 14:56:53 +01:00
Virus.V
79f1be5cfa
fix(draw): fix memory access out of bounds when using blend subtract ( #2860 )
...
* fix(draw) fix memory access out of bounds when using blend subtraction mode (#2847 )
* fix(draw) correct the drawing error of fill_set_px
2021-12-01 14:53:31 +01:00