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

7625 Commits

Author SHA1 Message Date
Kevin Thibedeau
09e19bb687
fix(refresh) switch to portable format specifiers (#2781)
Some platforms define uint32_t as "unsigned long" rather than "unsigned int".
The %d format specifier is mismatched and the C99 format macros are the only
portable way to handle these types.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-09 16:03:06 +01:00
Gabor Kiss-Vamosi
462fbcbf49 feat(example) add text with gradient example
fixes #2778
2021-11-09 15:44:39 +01:00
Gabor Kiss-Vamosi
cc78ef4506 feat(draw) add LV_BLEND_MODE_MULTIPLY 2021-11-09 15:34:30 +01:00
Gabor Kiss-Vamosi
4c034e56e0 fix(draw) fix horizontal gradient drawing 2021-11-09 15:29:55 +01:00
Xiang Xiao
58d9645a5c
chore: replace (void)xxx with LV_UNUSED(xxx) (#2779)
and remove the redundant inclusion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-09 13:48:02 +01:00
Kevin Thibedeau
61b0de3bdc
fix(stm32) Mark unused variable in stm32 DMA2D driver (#2782) 2021-11-09 15:23:38 +08:00
Gabor Kiss-Vamosi
d89a5fbbd2 fix(obj) do not set the child's position in lv_obj_set_parent
It's already stored in the object and will be applied later

fixes #2772
2021-11-08 15:13:51 +01:00
Xiang Xiao
ddfdccac3c
fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable (#2766)
* fix(config): check macro equal one correctly

1.remove all tabs from lv_conf_internal_gen.py
2.make the generated code align each other

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 14:40:08 +01:00
Xiang Xiao
dfb036e42c
fix(misc): correct the comment and code style (#2769)
and remove the redundant inclusion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-08 11:28:52 +01:00
Xiang Xiao
a4978d0913
fix(color): minor fixes(#2767)
* fix(color): move LV_UDIV255 to lv_math.h

since lv_math.h is better place for the computation function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(color): replace the inifite loop with LV_ASSERT

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:54:13 +01:00
guoweilkd
3bd53b984d
fix(draw_map) use existing variables instead function calls (#2776) 2021-11-08 10:47:57 +01:00
guoweilkd
47de6f05dc
fix(draw_img): fix typos in API comments (#2773) 2021-11-08 09:15:18 +01:00
guoweilkd
cbf02f8175
fix(draw_img):radius Mask doesn't work in Specific condition (#2775) 2021-11-08 09:02:42 +01:00
Xiang Xiao
572880ccd3
Fix typo error in color.md 2021-11-08 01:42:12 +08:00
Kevin Thibedeau
53a3e17f76
fix(proto) Remove redundant prototype declarations (#2771) 2021-11-07 16:03:31 +08:00
Gabor Kiss-Vamosi
41c2dd16ee chore: update lv_conf_internal.h 2021-11-05 15:44:28 +01:00
_VIFEXTech
abcf5660a9 fix(conf) better support bool option from Kconfign (#2555)
* fix(arc) format code

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(Kconfig) add missing LV_BUILD_EXAMPLES configuration

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(fsdrv): remove the seek call in fs_open (#2736)

since the file should be located at zero after open

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* docs(os) add example and clarify some poinits

* fix(draw border):border draw error if border width > radius (#2739)

* fix(label) consider base dir lv_label_get_letter_pos in special cases

related to https://github.com/lvgl/lvgl/issues/2712#issuecomment-953463193

* improve lv_conf_internal_gen.py for better Kconfig support

Co-authored-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: guoweilkd <guowei15@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 15:42:42 +01:00
Gabor Kiss-Vamosi
607dfeceb6
feat(display) add direct_mode drawing mode (#2460)
* feat(display) add direct_mode drawing mode

* update the docs
2021-11-05 15:35:36 +01:00
Gabor Kiss-Vamosi
acd0f4fbc7 feat: add LV_USE_MEM_PERF/MONITOR_POS
fixes #2735
2021-11-05 13:27:40 +01:00
Gabor Kiss-Vamosi
4d7d30677a fix(examples) exclude example animimg images if animimg is disabled 2021-11-05 13:21:29 +01:00
Miguel Magno
4e393178f3
docs: fix typo (#2765) 2021-11-05 12:18:40 +01:00
guoweilkd
372f94b7de
fix(draw_border):draw error if radius == 0 and parent clip_corner == true (#2764) 2021-11-05 12:08:56 +01:00
Jeff Kent
b189be67d2
fix(msgbox) add declaration for lv_msgbox_content_class (#2761) 2021-11-05 11:37:59 +01:00
DennisSHCheung
5b548006ed
fix(txt): skip basic arabic vowel characters when processing conjunction
* Skips basic vowel characters when calculating arabic conjunction

* Updated CHANGELOG.md

* Update docs/CHANGELOG.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 11:36:55 +01:00
Gabor Kiss-Vamosi
6d95521076 tool: add changelog_gen.sh to automatically generate changelog 2021-11-04 17:07:58 +01:00
Matteo Iervasi
d6341f05a9
fix(core) add L suffix to enums to ensure 16-bit compatibility (#2760) 2021-11-03 14:28:12 -04:00
embeddedt
1ab5c9689f
ci(micropython) add rp2 port
Related: https://github.com/lvgl/lvgl/issues/2758#issuecomment-958912402
2021-11-03 09:49:36 -04:00
Gabor Kiss-Vamosi
d9d3f27126 fix(printf) add (int) casts to log messages to avoid warnings on %d 2021-11-03 11:53:03 +01:00
Amir Gonnen
63ff80192b
ci(micropython) fix git fetch (#2757)
Switch from git protocol to https.

Related: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
2021-11-02 20:24:55 -04:00
Xiang Xiao
83f9c30985
feat(conf): make LV_MEM_BUF_MAX_NUM configurable (#2747)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 19:29:37 +01:00
Gabor Kiss-Vamosi
749d1b3ec3 docs(table) describe keypad/encoder navigation
related to: #2746
2021-11-02 19:22:09 +01:00
Gabor Kiss-Vamosi
06962a564f
docs(arduino) update how to use the examples
Related to: #2706
2021-11-02 18:40:59 +01:00
Xiang Xiao
e8d0809173
fix(anim): add lv_anim_get_playtime (#2745)
and migrate lv_anim_timeline_get_playtime to lv_anim_get_playtime

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 17:03:13 +01:00
Xiang Xiao
e461a4360c
fix(area) minor fixes (#2749)
* fix(area): fix typo error in _lv_area_is_out

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(area): compute LV_COORD_MAX/LV_COORD_MIN correctly

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(area): make LV_COORD_IS_PX work with the negative coordinate

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 16:41:05 +01:00
Xiang Xiao
e63a04e310
fix(mem): ALIGN_MASK should equal 0x3 on 32bit platform (#2748)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 15:39:30 +01:00
Gabor Kiss-Vamosi
174ef6692e docs describe the options to include or skip lv_conf.h 2021-11-02 13:57:45 +01:00
Hotakus
1ad5a86fe6
fix(template) prototype error (#2755) 2021-11-02 19:53:15 +08:00
Amir Gonnen
6c956cc0f4 Fix compile errors 2021-11-01 21:56:24 -05:00
Meco Man
32d33fe4d9 feat(rt-thread): support LVGL projects with GCC/Keil(AC5)/Keil(AC6)/IAR 2021-10-30 23:24:07 -05:00
Xiang Xiao
78ee8e6cd7
fix(anim): remove time_orig from lv_anim_t (#2744)
swap time and playback_time instead to save four bytes

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-29 16:28:36 +02:00
Xiang Xiao
ffe386186f
animation improvement (#2743)
* fix(anim): replace the hardcode 1024 with LV_BEZIER_VAL_MAX

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(anim): simplify the animation end condition

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(anim): remove the temp anim obj in anim_ready_handler

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-29 16:25:45 +02:00
guoweilkd
f43a33921a
fix(draw_rect):bottom border lost if enable clip_corner (#2742) 2021-10-29 10:57:45 +02:00
Gabor Kiss-Vamosi
580e05a0e1 fix(label) update lv_label_get_letter_pos to work with LV_BASE_DIR_AUTO too
related to #2712
2021-10-29 10:52:01 +02:00
Xiang Xiao
3d0a21e8c4
fix(anim) and improvement (#2738)
* fix(anim): fix the callback type error of lv_anim_set_start_cb

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* feat(anim): add lv_anim_custom_get which paired with lv_anim_get

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-29 10:22:41 +02:00
Gabor Kiss-Vamosi
6df51225c2 fix(label) consider base dir lv_label_get_letter_pos in special cases
related to https://github.com/lvgl/lvgl/issues/2712#issuecomment-953463193
2021-10-28 19:48:13 +02:00
guoweilkd
74258507fc
fix(draw border):border draw error if border width > radius (#2739) 2021-10-28 17:23:40 +02:00
embeddedt
d996453207
docs(os) add example and clarify some poinits 2021-10-28 08:30:49 -04:00
Xiang Xiao
1cce91fac0
fix(fsdrv): remove the seek call in fs_open (#2736)
since the file should be located at zero after open

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-27 12:52:10 +02:00
Gabor Kiss-Vamosi
17b8a76c4a feat(log) allow overwriting LV_LOG_... macros 2021-10-27 10:31:36 +02:00
Gabor Kiss-Vamosi
cc935b87f6 fix(tlsf) undef printf before define-ing it 2021-10-27 10:31:36 +02:00