Commit Graph

7925 Commits

Author SHA1 Message Date
guoweilkd
9137840582 fix(canvas):image cache may expire after set canvas's buff (#3267) 2022-04-11 13:35:28 +02:00
_VIFEXTech
3db7adffb1 fix(obj_style): prevent access to class null pointer (#3252)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-04-11 12:43:52 +02:00
_VIFEXTech
563603589d pref(png): use lv_memcpy/memset to improve performance (#3251)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-04-11 12:41:59 +02:00
Gabor Kiss-Vamosi
dea75d9b4a fix(draw): fix disp_bg_img drawing
See https://forum.lvgl.io/t/issue-with-background-image-rendering-in-lvgl-8-2-0-with-lv-color-depth-32/8607
2022-04-11 12:40:56 +02:00
Gabor Kiss-Vamosi
1b219654db chore: code formatting and fix warnings 2022-04-06 22:18:30 +02:00
Gabor Kiss-Vamosi
b0a46c4837 fix(indev): do not send keys to objects in disabled state 2022-04-06 22:12:24 +02:00
Gabor Kiss-Vamosi
00f67597d3 fix(theme) add disabled style to textarea in the default theme 2022-04-06 22:12:24 +02:00
Gabor Kiss-Vamosi
79a29d749d feat(msg): add publisher-subscriber messaging 2022-04-06 22:12:24 +02:00
embeddedt
5977eeff3c ci(stale) bump action version
This should fix a couple problems I've noted with issues not having their stale status removed.
2022-04-05 08:14:03 -04:00
Gabriel Wang
c6d4b6e554 feat(benchmark): add trace output for running a specific scenario (#3245)
* feat(benchmark): add trace output for running a specific scenario

* Update lv_demo_benchmark.c
2022-04-05 10:52:07 +02:00
_VIFEXTech
bf85b50031 fix(png): fix possible memory leak when decoding fails (#3249)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-04-05 10:21:09 +02:00
_VIFEXTech
311df87f0d fix(libs): fix possible buffer underflow caused by extension matching (#3250)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-04-05 10:19:17 +02:00
Gabor Kiss-Vamosi
a7f9dfa8c3 fix(refr): consider masks with LV_OBJ_FLAG_OVERFLOW_VISIBLE
fixes: #3151
2022-04-04 18:37:30 +02:00
Ryzee119
57e3697dca fix(fs): track multiple directory handles with win32 backends (#3243)
* fix(fs_win32): Track multiple directory handles

* fix(fs_stdio): Track multiple directory handles (win32)
2022-04-04 14:49:07 +02:00
Gabor Kiss-Vamosi
b7b22c190c revert(group): 72cb683c79
fixes: #3248
2022-04-04 13:28:23 +02:00
Gabor Kiss-Vamosi
b171f7dde2 fix(list): use for icon 2022-03-30 14:19:21 +02:00
_VIFEXTech
f9b554503e fix(png): use LV_IMG_CF_TRUE_COLOR_ALPHA instead of LV_IMG_CF_RAW_ALPHA (#3212)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 13:18:28 +02:00
Man, Jianting (Meco)
6185da3d76 fix(Keil-AC5): slience warnings in Keil-AC5 (#3221)
* fix(Keil-AC5): slience warnings in Keil-AC5

* Update SConscript

* Update src/misc/lv_types.h

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2022-03-30 13:12:39 +02:00
Xiang Xiao
7c6f98146d chore(kconfig): minor fix for Kconfig (#3215)
* chore(Kconfig): remove "!= 0" from "depends on LV_USE_FS_XXX != 0"

since all LV_USE_FS_XXX is bool variable, "depends on LV_USE_FS_XXX" is enough

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

* chore(Kconfig): select LV_USE_IMG for LV_USE_CANVAS

since canvas depends on image

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-30 13:09:48 +02:00
_VIFEXTech
8a2d283b2e fix(meter): fix infinite loop caused by loop variable type mismatch (#3232)
* fix(meter): fix infinite loop caused by loop variable type mismatch

* Update src/extra/widgets/meter/lv_meter.c

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-03-30 13:06:30 +02:00
_VIFEXTech
82740fea59 fix(chart): remove invalid decision branches (#3231)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 13:05:33 +02:00
_VIFEXTech
06e616d0cb fix(gradient): assert before dividing by 0 (#3228)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 13:04:52 +02:00
_VIFEXTech
b35a37f52d fix(calendar): fix infinite loop caused by loop variable type mismatch (#3230)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 13:01:49 +02:00
_VIFEXTech
435cc3fedc fix(flex): assert before dividing by 0 (#3237)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 13:00:48 +02:00
_VIFEXTech
74f66d96d5 fix(hal): fix LV_ASSERT_MALLOC wrong placement (#3236)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:59:58 +02:00
_VIFEXTech
e4fb579558 fix(disp): fix missing null pointer judgment (#3238)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:59:26 +02:00
_VIFEXTech
80a6d2bf57 fix(obj_class): fix possible memory leak when the default disp is NULL (#3235)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:58:28 +02:00
_VIFEXTech
adf7dc2121 fix(draw_sw_letter): fix incorrect use of sizeof for a pointer (#3234)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:57:53 +02:00
_VIFEXTech
7dd229a7cd fix(indev): fix null pointer access caused by typo (#3229)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:57:30 +02:00
_VIFEXTech
5d8845e0a2 fix(event): remove invalid decision branches (#3233)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:56:54 +02:00
_VIFEXTech
b0c1e297f4 fix(draw_mask): remove invalid decision branches (#3225)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:55:05 +02:00
_VIFEXTech
5a7e7e25e9 fix(spinbox): remove invalid judgment (#3227)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:54:26 +02:00
_VIFEXTech
2c70665674 fix(gradient): remove invalid decision branches (#3226)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:53:46 +02:00
_VIFEXTech
931207683d fix(txt): return 0 if letter_uni is out of range (#3224)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:52:37 +02:00
_VIFEXTech
9768c78c20 fix(calendar): fix possible array access out of bounds (#3223)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:51:58 +02:00
_VIFEXTech
423a3eb5d7 fix(style): remove useless null pointer judgment (#3222)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-30 12:51:36 +02:00
Pete Bone
8f8bd5f47c Update chart to set LV_CHART_POINT_NONE correctly for LV_USE_LARGE_COORD (#3217)
* Update chart to set LV_CHART_POINT_NONE correctly for LV_USE_LARGE_COORD

* Fix warning.
2022-03-29 17:33:47 +01:00
guoweilkd
6b628e524b fix(obj): scrolling exception when use lv_obj_set_parent() (#3210) 2022-03-29 16:39:26 +02:00
Gabriel Wang
a5b9a1c210 feat(env_support): cmsis pack monthly update (#3209)
* feat(gpu): update lv_gpu_arm2d

* feat(cmsis-pack): Monthly update for March
2022-03-29 13:58:07 +02:00
Tim Stableford
f426d546fa feat(tabview): support vertical scrolling (#3184)
This makes it so when the tabview has the tabs on the left or right
it will be scrolled up and down rather than left and right in all cases.
2022-03-29 13:57:48 +02:00
guoweilkd
47791926f9 feat(span): add an interface for setting the number of lines (#3200)
* fix draw: remove the high overflow judgment code
2022-03-29 13:06:58 +02:00
_VIFEXTech
9a0a74813d fix(libs): fix memcmp memory access overflow (#3205)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-25 14:22:16 +01:00
Xiang Xiao
7d968bda8b chore(config): change LV_FFMPEG_AV_DUMP_FORMAT to LV_FFMPEG_DUMP_FORMAT (#3199)
ensure all ffmpeg special config start with the prefix(LV_FFMPEG_)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-24 22:13:06 +01:00
_VIFEXTech
8ddbae1f35 fix(png): fix possible file leaks (#3204)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-03-24 22:12:29 +01:00
Xiang Xiao
a6368fec53 fix(docs): rename task-handler.md to timer-handler.md (#3203)
since all task facility is already switched to timer facility

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-24 22:11:45 +01:00
Gabor Kiss-Vamosi
378aaa637b docs: add section for renderers and gpus 2022-03-24 21:52:42 +01:00
Ryzee119
4f30bb9fa5 fix(lru): Fix use of undefined variables (#3181) 2022-03-24 21:42:31 +01:00
Gabor Kiss-Vamosi
127d8e82e3 fix(textarea): fix max length handling 2022-03-24 18:48:25 +01:00
Man, Jianting (Meco)
15247f9305 fix(rt-thread): Sconscript use LOCAL_CFLAGS to replace LOCAL_CCFLAGS (#3196) 2022-03-23 13:13:59 +01:00
Carlos Diaz
2b6cc3bc9c ci(slider): add unit test (#3198)
* slider: Refactor LV_SLIDER_KNOB_COORD and draw_knob

The `hor` parameter of this macro was always true, ending up always using the
left side of the ternary operator, with this refactor we eliminate the `hor`
parameter and remove the ternary operator it was used for.

This macro is only used in the `draw_knob` event handler, so it helps with its
initial cleanup.

* test(slider): Test documented default properties

* test(slider): Tests for LV_EVENT_KEY with valid and invalid keys

* feat(slider): Add helper to know if slider is horizontal

* chore(slider): Cleanup LV_EVENT_PRESSING handler

Reduce scope of variables where possible and use LV_CLAMP

* chore(slider): Cleanup draw_knob

* test(slider): Add tests for LV_EVENT_RELEASED

* test(slider): Add note about left_knob_focus

* test(slider): Initial test for hit test

* test(slider): Add tests for different slider modes

* chore(slider): cleanup draw_knob

* chore(slider): Cleanup position_knob

* test(slider): Move group configuration to setUp

* test(slider): Refactor tests with feedback

* add test_ranged_mode_adjust_with_encoder

* code formatting

* tests(slider): Remove direct usages of left_knob_focus

* test(slider): Remove unused variable

* Revert "test(slider): Refactor tests with feedback"

This reverts commit b274f829ecd83c894569b6f0535c7edebce5cbc9.

* test(slider): Add missing variable

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-03-23 13:05:30 +01:00