guoweilkd
e00b51b04f
fix(obj): old parent's scroll is not updated in lv_obj_set_parent() ( #2965 )
2022-01-06 21:56:53 +01:00
Konstantinos Papadopoulos
343515cd4d
fix(fatfs) add missing cast ( #2969 )
...
f_tell requires a FIL type pointer causing compiling to fail.
2022-01-06 09:05:44 -05:00
xaowang96
ddae70f741
fix(snapshot) fix memory leak ( #2970 )
...
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com >
Co-authored-by: Themba Dube <embeddedthemba@gmail.com >
2022-01-06 08:56:53 -05:00
Gabor Kiss-Vamosi
e7ac0e4198
feat(obj): add LV_OBJ_FLAG_OVERFLOW_VISIBLE
2022-01-05 16:18:19 +01:00
guoweilkd
ee3aa07a83
feat(obj): subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER ( #2961 )
...
* feat(obj scroll):subdivide LV_OBJ_FLAG_SCROLL_CHAIN into ...CHAIN_HOR and ...CHAIN_VER
* feat(roller):open the horizontal scroll chain
* chore(docs):improve the description of scroll chain
2022-01-05 13:44:05 +01:00
Mariotaku
9bbf661dd4
perf(sdl): optimize the use of SDL_RenderSetClipRect ( #2941 )
...
* reduce SDL_RenderSetClipRect as much as possible
* added some comments
* removing draw_sw usage
* fixed import
* implemented polygon drawing
* supports subimage for sdl texture based images
* fixed formatting
* removed unused code
* cleanup
* cleanup
* formatted code
2022-01-05 10:01:18 +01:00
Gabor Kiss-Vamosi
364ca3ca17
fix(bar, slider): fix shadow drawing on short indicators
...
The issue is related to the case when the indicator is short but the main part (bg) clips it with a larger radius.
In this case this indicaotr might have a strange shape, like
_
/ |
| |
\_|
We can't draw a shadow like this, so the indicator has to be et least a square,
to be sure it's not clipped to an ugly shape.
The previous code considered the bg radius to decide whether to draw shadow on short indicators or not.
However if the indicator's radius should be considered, becuse if its area at least a square
we can already draw shadows.
2022-01-04 10:49:07 +01:00
Gabor Kiss-Vamosi
81bfb765e5
fix(draw): futher bg_img draw fixes
2022-01-04 10:27:34 +01:00
Gabor Kiss-Vamosi
c63fb1c593
chore: fix warning
2022-01-03 21:42:04 +01:00
Gabor Kiss-Vamosi
d51aea4dff
fix(draw): consider opa and clip corner on bg_img
2022-01-03 21:23:12 +01:00
Gabor Kiss-Vamosi
5a0dbccf89
fix(draw): fix indexed image drawing
2022-01-03 20:10:55 +01:00
Gabor Kiss-Vamosi
1092550775
fix(png) check png magic number to be sure it's a png image
2022-01-03 20:10:26 +01:00
Malte Langermann
9ca4f56c0e
fix(canvas): off by one error in size check in lv_canvas_copy_buf ( #2950 )
2022-01-03 12:41:04 +01:00
Carlos Diaz
205a85b5d6
fix(indev) add braces to avoid compiler warning ( #2947 )
2021-12-30 16:04:49 -05:00
Gabor Kiss-Vamosi
2392f585bb
fix(btnmatrix): fix crash if an empty btnmatrix is pressed
2021-12-22 21:18:07 +01:00
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