Commit Graph

7436 Commits

Author SHA1 Message Date
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
Xiang Xiao
ec2be7e53a fix(fsdrv): skip the path format if LV_FS_xxx_PATH not defined (#2726)
to save the stack space and fix some minor code style issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-27 10:19:59 +02:00
Xiang Xiao
91cf82d081 fix: mark unused variable with LV_UNUSED(xxx) instead of (void)xxx (#2734)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-27 10:00:06 +02:00
Gabor Kiss-Vamosi
58f3f5625c fix(label) fix in lv_label_get_letter_pos with when pos==line_start
related to #2712
2021-10-26 15:08:49 +02:00
Gabor Kiss-Vamosi
e95efc152f fix(label) do not bidi process text in lv_label_ins_text
related to #2712
2021-10-26 14:21:34 +02:00
Gabor Kiss-Vamosi
9c7338c90b fix warnings 2021-10-26 10:25:37 +02:00
Gabor Kiss-Vamosi
6319673db3 fix warnings 2021-10-26 10:14:05 +02:00
Gabor Kiss-Vamosi
924bc754ad fix various minor warnings
- remove stdio.h when possible
- use LV_LOG_WARN to instead of printf
2021-10-26 10:06:29 +02:00
Xiang Xiao
47cdfa6cfc fix(fsdrv): fix typo error in commit 752fba34f6 (#2732)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-25 13:26:56 -04:00
Xiang Xiao
752fba34f6 fix(fsdrv): return error in case of the read/write failure (#2729)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-25 19:15:42 +02:00
Gabor Kiss-Vamosi
9318e02ef5 fix(scroll) in scroll to view functions respect disabled LV_OBJ_FLAG_SCROLLABLE
fixes #2730
2021-10-25 19:09:28 +02:00
Gabor Kiss-Vamosi
0bab4a72cf fix(calendar) update the MP example 2021-10-25 18:51:49 +02:00
Jianting (Meco) Man
97bf74915d fix(refr) silence compiler warning due to integer type mismatch (#2722) 2021-10-25 18:47:25 +02:00
Jianting (Meco) Man
95be2c7b99 fix(example):format codes (#2731) 2021-10-25 18:44:44 +02:00
Gabor Kiss-Vamosi
1b04bf4488 fix warning 2021-10-25 18:43:32 +02:00
Gabor Kiss-Vamosi
2e08f80361 feat(calendar): add the header directly into the calendar widget
In v8.0 the header was a detached object which made it difficult to move the header and the calendar
together. Besides there were no way to notifi the header of the calendar's shown date has changed.

BREAKING CHANGE: API of cleander headers, the appearence of the calendars

related to #2573"
2021-10-25 18:39:18 +02:00
Johannes Marbach
b59cc9cfb8 feat(disp): add non-fullscreen display utilities (#2724)
This adds utility functions/macros for dealing with non-fullscreen
displays.

Related to lvgl/lv_drivers#166
2021-10-25 08:26:43 -04:00
Xiang Xiao
0c10453f17 fix(fs): fix the off-by-one error in the path function (#2725)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-25 12:28:37 +02:00
Xiang Xiao
dd5199f279 Improve LV_FORMAT_ATTRIBUTE usage (#2673)
* fix(format): remove LV_FORMAT_ATTRIBUTE from the function body

since it's enough to append LV_FORMAT_ATTRIBUTE to function declaration

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

* fix(format): add LV_FORMAT_ATTRIBUTE to lv_snprintf and lv_log

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

* fix(format): fix the format specifier warning

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-25 12:18:45 +02:00
Xiang Xiao
dedf822930 Merge pull request #2723 from ajsb85/master
Fix typo in commands to build rlottie
2021-10-24 04:45:21 -05:00
Alexander Salas Bastidas
ed9169c56d docs(rlottie): fix typo in commands 2021-10-24 01:47:24 +02:00
embeddedt
93c1303ee7 chore(stale) disable on forks 2021-10-23 08:20:19 -04:00
Gabor Kiss-Vamosi
ce0b564588 docs(rlottie) fix build error 2021-10-22 16:09:15 +02:00
Gabor Kiss-Vamosi
03fff13f62 feat(rlottie) add LVGL-Rlottie interface as 3rd party lib (#2700) 2021-10-22 15:44:43 +02:00
Jianting (Meco) Man
49c069fe89 del(.gitmodules): delete .gitmodules (#2718) 2021-10-22 12:43:48 +02:00
Gabor Kiss-Vamosi
f6d7dc7f00 fix(lv_printf.h): to eliminate the errors in Keil and IAR
Originally added here but stragely disappeared: https://github.com/lvgl/lvgl/pull/2695
2021-10-22 12:42:38 +02:00
Jianting (Meco) Man
9d7f53012c feat(rtthread): prepare for porting the device-driver of rt-thread (#2719) 2021-10-22 11:13:39 +02:00
Gabor Kiss-Vamosi
00e5597d69 Merge branch 'master' of https://github.com/lvgl/lvgl 2021-10-21 19:05:20 +02:00
Gabor Kiss-Vamosi
5b27ebb409 fix(obj_pos) consider all alignements in contnt size calculation but only if x and y = 0 2021-10-21 12:20:00 +02:00
Gabor Kiss-Vamosi
76c8ee6b7e fix(freetype) fix underline calculation
Fixes: #2711
Based on: aa85d97474
2021-10-21 11:45:25 +02:00
Gabor Kiss-Vamosi
c2d93f78b9 fix(sjpg) remove unnecessary typedefs
stdio.h should be always available, adding custom typedefs resulted in conflicting types on Windows
2021-10-21 11:13:07 +02:00
Xiang Xiao
7339cff139 fix(timer): remove the code duplication in lv_timer_exec (#2708)
and fix some minor comment issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-21 10:50:30 +02:00
Xiang Xiao
0d48396f25 fix(async): remove the wrong comment from lv_async_call (#2707)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-21 10:30:16 +02:00
embeddedt
5d8285e2d3 ci create check for lv_conf_internal.h 2021-10-20 20:06:34 -04:00
embeddedt
56f62b8d73 fix(gif) replace printf statement with LVGL logging 2021-10-20 18:00:27 -04:00
Xiang Xiao
13b7fd8dae fix(kconfig): change CONFIG_LV_THEME_DEFAULT_FONT to CONFIG_LV_FONT_DEFAULT (#2703)
so the user can overwrite LV_FONT_DEFAULT

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-20 15:47:02 +02:00
Gabor Kiss-Vamosi
a9b660c278 fix(obj_pos) save x,y even if the object is on a layout
The set values will be ignored later, but they needs to be saved
in case the layout is removed from the parent
2021-10-20 11:55:26 +02:00
Kenji Mouri
bbad478ce6 feat(fsdrv) add driver based on Win32 API (#2701) 2021-10-20 11:35:11 +02:00
guoweilkd
91a0d3b5e4 feat(span) indent supports percent for fix and break mode (#2693)
* span:indent supports percent for fix and break mode

* Update docs/widgets/extra/span.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-10-20 11:13:42 +02:00
Amir Gonnen
eaf25348a7 fix add MP support for LVGL 3rd party libraries (#2666)
* Fixes for MP support for LVGL 3rd party libraries

Add missing lv_qrcode_class

Remove 'struct JDEC' from public API. This struct is needed intenally on tjpgd.c and lv_sjpg.c, but doesn't need to be exposed in the public API. When exposed, it increases Micropython binding program size and some fields are not supported today (uint8_t* huffbits[2][2]). To overcome this, moved it to a new H file which is not included in public API, only in sjpg C files

Related: https://github.com/lvgl/lv_binding_micropython/issues/180

* lv_qrcode: add lv_class_qrcode

Must define a distinct class for every widget, to allow Micropython bindings convert lv_obj_t into the specific class

* gifdec.c: fix uninitialized

ESP32 reports some potentially uninitialized variables. Initialize them to prevent the errors

* src/extra/libs/sjpg: smaller public header

Only keep lv_split_jpeg_init in public header, since JPEG is used with image decoder

* Remove tjdec.h
2021-10-20 10:46:22 +02:00