_VIFEXTech
9f90d82e91
fix(fsdrv): replacing sprintf with lv_snprintf for safety ( #3079 )
...
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration
* feat(refr) add reset of FPS statistics
* fix(conf) mismatched macro judgment
* feat(fsdrv) replacing sprintf with lv_snprintf for safety
* feat(fsdrv) update stdio and win32
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-02-08 15:22:28 +01:00
Gabor Kiss-Vamosi
2dc804f2b2
chore: fix code formatting
2022-02-07 21:18:00 +01:00
Gabriel Wang
796f0c0b4e
feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting ( #3063 )
...
* feat(porting): add a macro lv_run_timer_handler_in_period to simplify porting
* feat: update helper function and doc
* doc(porting): update function names
* revise to the original os.md
* fix: fix typo
* fix: mitigate warnings
2022-02-07 21:10:12 +01:00
Gabor Kiss-Vamosi
9a1e385b2b
docs(images): fix notes about breaking change inf v8.2
...
Indexed images are not chroma keyed. Use the alpha chaneel instead.
Realted to: https://forum.lvgl.io/t/8-2-0-image-drawing-renders-actual-color-defined-for-transparency-in-lv-img-cf-indexed-8bit-images-8-1-0-and-prior-did-not/8133
2022-02-07 19:15:01 +01:00
Gabor Kiss-Vamosi
f6a61df3ae
chore: update lv_conf_internal.h
2022-01-29 14:35:05 +01:00
Gabor Kiss-Vamosi
74091c42f7
chore: fix typos in FATFS config
...
fixes https://github.com/lvgl/lvgl/pull/2979#discussion_r794612134
2022-01-29 13:47:14 +01:00
Mariotaku
70c2b57abe
fix(canvas): force canvas to use sw draw ( #3045 )
...
* force canvas to use sw draw
* added userdata to lv_draw_sdl_drv_param_t
* fixing build test
* Update src/draw/sdl/lv_draw_sdl.h
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-25 13:24:34 +01:00
Adrian Schnyder
abba1c351a
feat(fs): add caching option for lv_fs-read ( #2979 )
...
BREAKING CHANGE:
The `LV_FS_...` related configs needs to be updated.
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-24 20:52:37 +01:00
Gabor Kiss-Vamosi
4197b2fd6e
feat(scrollbar): add more control over scrollbar paddings
2022-01-24 20:11:43 +01:00
Gabor Kiss-Vamosi
5ec532dfd5
fix(sw): make knob size calculation more intuitive
2022-01-24 16:21:43 +01:00
Gabor Kiss-Vamosi
5c98ac8511
fix(draw): fix clipping children to parent
2022-01-24 16:06:38 +01:00
X-Ryl669
923defd6b6
fix(gradient): general cleanup and fix for alignment issues ( #3036 )
...
* Try to fix ASAN behavior
* improve alignments
* fix buffer overflow and various other fixes
* minor fixes
* formatting
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-24 15:47:47 +01:00
Carlos Diaz
0b68840cd9
test(bar): add unit tests ( #2845 )
...
* test(bar) Add test for docummented default attributes
* test(bar) Update test for docummented default attributes
* test(bar): Indicator width tracks value
* test(bar) Calculate bar indicator width based on its style
Take padding, max value and bar value into consideraion
* test(bar) Indicator area gets smaller when increasing padding in LV_PART_MAIN style
* test(bar) Start value changes only when in range mode
* docs(bar): Add missing MODE to symbols
* test(bar) Start value should be smaller than current value
* test(bar): Test current value truncation to max and min value
* bar: Check bar mode in lv_bar_set_start_value
bar start_value can be changed only when bar is in LV_BAR_MODE_RANGE mode.
Return early when it's not.
* test(bar): Fix width calculation test
* bar: Initialize indic_area in constructor
* test(bar): Refactor indicator coordinate update test
* test(bar): Indicator negative value in symmetrical mode
* test(bar): Fix base direction
* test(bar): Indicator coord test for RTL base dir
2022-01-22 16:17:13 +01:00
X-Ryl669
1f9d3892a3
fix(draw): rendering issues for vertical gradient with and without dithering ( #3034 )
2022-01-22 15:43:37 +01:00
Amir Gonnen
e143788903
fix uninitialized variable ( #3033 )
2022-01-20 17:12:08 -05:00
Mariotaku
842296d874
fix(lru): lower dependency for standard C functions ( #3024 )
...
* uses lvgl memory functions for lru
* uses lv_memset_00
* using lv_rand for seed
updated to use lvgl naming convention
* includes stddef.h
2022-01-20 12:00:13 +01:00
Gabor Kiss-Vamosi
62fc7123f1
feat(gridnav): add lv_gridnav ( #2911 )
...
* add first implememtation
* Update src/extra/others/gridnav/lv_gridnav.c
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com >
* minor fix
* add example and minor fixes
* add more examples
* add more examples
* code formatting
* add LV_GRIDNAC_CTRL_SCROLL_FIRST
* code formatting
* add example for list
* add docs
* Misc: improvements to gridnav docs (#2994 )
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com >
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com >
2022-01-20 10:29:40 +01:00
Gabor Kiss-Vamosi
731ef5a75e
fix(refr): fix missed buffer switch in double full-screen buffer + direct_mode
...
fixes #3010
2022-01-20 10:17:44 +01:00
Amir Gonnen
9d1febd275
fix uninitialized variables ( #3023 )
2022-01-19 09:24:44 -05:00
Gabor Kiss-Vamosi
e9d70803e1
chore(qrcode): fix warnings
...
fixes #3016
2022-01-19 14:06:12 +01:00
Gabor Kiss-Vamosi
adc218a7b3
fix(theme): add arc, spinner and colorwheel to basic theme
2022-01-19 14:02:43 +01:00
Gabor Kiss-Vamosi
345f6882c9
fix(arc): fix knob invalidation
2022-01-19 14:02:11 +01:00
Gabor Kiss-Vamosi
f8d88567f6
fix(obj) make LV_OBJ_FLAG_SCROLL_CHAIN part of the enum instead of define
...
It's required for MicroPython backward compatibility
2022-01-19 13:18:08 +01:00
Gabor Kiss-Vamosi
ca5f04cfe3
fix(theme): fix crash in lv_theme_basic_init
2022-01-19 13:03:02 +01:00
Mariotaku
d33db6bb59
feat(sdl): support rounded images ( #3012 )
...
* added radius mask for rounded img
* improved mask composite
improved image zoom fidelity
* implementing sdl image radius
* low performance radius img drawing
* improved rounded image performance
* improved rounded image performance
* improved rounded image blending
* pixel perfect rounded image for SDL
* accurate drawing only
* supports rounded img for rect as well
* fixed mask check when zoomed
* surrounded rounded mask in lv_img with draw_complex check
* updated docs
* fixed build issue
* aware of clip_corner property
* reverted lv_img.c
* updated docs
2022-01-18 11:41:45 +01:00
Gabor Kiss-Vamosi
0921dfc8cd
fix(switch): make knob height calculation similar to slider
...
That is use the switch's full height without padding as default knob height
2022-01-18 11:25:23 +01:00
ckielstra
febafd1cc7
chore: many trivial spelling and layout fixes ( #3008 )
...
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-17 08:10:23 -05:00
Carlos Diaz
a9a6cb8efd
fix(span): explicitly set span->txt to the return value of lv_mem_realloc( #3005 )
...
* Update lv_span.c
Explicitly set `span->txt` to return of `lv_mem_realloc`
* Update lv_mem.h
Add note about `lv_mem_realloc` return value on failure
2022-01-17 13:18:19 +01:00
Gabor Kiss-Vamosi
138db9c5d6
fix(draw): add grad_cache_mem to GC_ROOTs
2022-01-17 11:30:38 +01:00
Gabor Kiss-Vamosi
8d52de14b3
fix(table, chart): fix memory leaks
...
fixes #2967
2022-01-15 20:43:17 +01:00
Gabor Kiss-Vamosi
7c8adba839
chore: fix warning
2022-01-15 20:02:02 +01:00
Gabor Kiss-Vamosi
86525c35ba
chore(lv_conf): add comment about the widgets demo might require more memory
2022-01-15 19:57:19 +01:00
Gabor Kiss-Vamosi
5709528550
fix(roller): clip overflowing text
2022-01-15 13:56:39 +01:00
Gabor Kiss-Vamosi
49642d3891
fix(draw): add lv_draw_sw_bg
2022-01-15 13:46:36 +01:00
X-Ryl669
37c038569c
feat(event): add preprocessing and stop bubbling features for events ( #3003 )
2022-01-13 17:38:51 +01:00
Mariotaku
49dc90a2b6
fix(sdl): fix clipped image drawing ( #2992 )
...
* fixed clipped image drawing
* make sdl blend mode a feature toggle
* improved textarea cursor fidelity
* added some comment to config
* updated config header
* updated formatting
2022-01-13 16:56:56 +01:00
X-Ryl669
38ad11966a
fix(draw): missed bg_color renaming in the draw function ( #3002 )
2022-01-13 13:02:23 +01:00
_VIFEXTech
85a582a6df
fix(conf) add missing LV_LOG_LEVEL default definition ( #2996 )
...
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration
* feat(refr) add reset of FPS statistics
* fix(conf) mismatched macro judgment
* fix(conf) add missing LV_LOG_LEVEL default definition
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-01-12 15:14:49 +01:00
guoweilkd
84c22ec7ed
fix(refr): crash if full_refresh = 1 ( #2999 )
2022-01-12 14:10:07 +01:00
X-Ryl669
6617385f8a
feat(draw): add gradient dithering support ( #2872 )
...
* Add dithering to gradients
* Add support for 8x8 matrix for ordered dithering
* Fix CI errors
* Try error diffusion on vertical gradient too
* Vertical error diffusion dithering
* Add support for runtime based dithering mode selection (from none, ordered, error diffusion).
* Reduce the binary size of the code by sharing the dithering table when appropriate.
* Fix CI
* Fix CI
* Review corrections
* Fix union mapping
* Revert bg_color changes
* Fix for keeping bg_color in the API.
* Fix after review
* Add support for setting multiple stops per gradient in the style API
* Let's make an example
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com >
2022-01-11 12:38:30 +01:00
Gabor Kiss-Vamosi
0645af32a2
doc(gpu): add a page for external GPU support and draw_ctx
...
related to: #2988
2022-01-11 11:35:28 +01:00
_VIFEXTech
828744f11d
fix(Makefile): compilation errors ( #2944 )
...
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration
* feat(refr) add reset of FPS statistics
* fix(conf) mismatched macro judgment
* fix(Makefile) compilation errors
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com >
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com >
2022-01-10 11:17:03 +01:00
Gabor Kiss-Vamosi
305284c2b5
fix(conf) define LV_LOG_TRACE_... to 0 in lv_conf_internal.h to avoid warnings
2022-01-10 11:16:09 +01:00
Gabor Kiss-Vamosi
0a5a07278e
chore(slider): fix warning
2022-01-08 13:57:58 +01:00
Gabor Kiss-Vamosi
bfc8edf802
fix(event): handle object deletion in indev->fedback_cb
...
fixes #2906
2022-01-08 13:57:32 +01:00
Gabor Kiss-Vamosi
9d3fb41896
feat(slider): consider ext_click_area on the knob with LV_OBJ_FLAG_ADV_HITTEST
2022-01-08 13:48:35 +01:00
guoweilkd
3d1ea607f2
feat(span): lv_spangroup_get_expand_width() adds a parameter ( #2968 )
...
BREAKING CHANGE: from now lv_spangroup_get_expand_width() has a max_width parameter too.
2022-01-07 21:33:30 +01:00
Tyler
27fbf3c0e6
feat(symbols): add guards to LV_SYMBOL_* to allow redefining them ( #2973 )
2022-01-07 14:57:27 +01:00
Almir Mehanović
8bbbdf7c07
fix(rlottie): fix variable name ( #2971 )
...
Couldn't compile because 'c': undeclared identifier error
2022-01-06 22:12:29 +01:00
Tijs van Roon
9b1335c622
fix(group): in lv_group_del() remove group from indev (lvgl#2963) ( #2964 )
2022-01-06 21:58:26 +01:00