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

4400 Commits

Author SHA1 Message Date
Mariotaku
03b04a45b9
fix(SDL): fix typos and other minor issues (#3517)
* fix(sdl): wrong coords for transformed backgrounds

* fix(sdl): fixed typo

* fix(sdl): fixed typo
2022-07-25 21:00:48 +02:00
Gabor Kiss-Vamosi
17730c276c fix(spinbox): fix lv_spinbox_set_cursor_pos()
fixes #3516
2022-07-25 14:07:34 +02:00
Gabor Kiss-Vamosi
85ef9b2b84 perf(draw): optimize LV_COLOR_FORMAT_NATIVE 2022-07-24 22:02:31 +02:00
Gabor Kiss-Vamosi
9ce59a734f chore: fix warnings 2022-07-24 17:39:05 +02:00
Gabor Kiss-Vamosi
cd4d07a4ba fix(snapshot): make snapshot work again
Support inly true color, true color alpha and a8 formats
2022-07-24 16:22:55 +02:00
Gabor Kiss-Vamosi
7823db1ded fix: fix area invalidation issue with style_transform_zoom/ange 2022-07-24 16:22:55 +02:00
Gabor Kiss-Vamosi
689e584d52 feat(draw): add transformation for LV_IMG_CF_A8 images 2022-07-24 16:22:50 +02:00
Adam Martini
30d860adc1
fix(led): add bg_color draw descriptors back to led draw event to support LV_DRAW_COMPLEX 0 (#3515)
Co-authored-by: Hopper Automation <automation_hopper@hopper.com>
2022-07-23 20:37:51 +02:00
xaowang96
fcd4011f22
feat(img): do not show "no data" if src is NULL (#3510)
* feat(img):do not show "no data" if src is NULL

Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>

* format code

Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
2022-07-23 20:03:06 +02:00
Gabor Kiss-Vamosi
efe47b17e4 minor fixes 2022-07-21 23:09:54 +02:00
Gabor Kiss-Vamosi
59818094c5 update lv_conf_temaple.h 2022-07-21 22:45:23 +02:00
Gabor Kiss-Vamosi
4c980c1a94 refactor(mem): move builtin memcpy, memset, strcpy, strlen into a separate file 2022-07-21 22:22:35 +02:00
Gabor Kiss-Vamosi
536a5e319b chore: fix warning 2022-07-21 07:31:39 +02:00
Gabor Kiss-Vamosi
453ac21254 arch(color): define generic color formats and add draw_ctx->buffer_convert 2022-07-21 07:28:19 +02:00
Gabor Kiss-Vamosi
e42f01a38a fix(make): update lvgl.mk and remove unnecessary mk files 2022-07-20 12:10:00 +02:00
Gabor Kiss-Vamosi
c79501bdce arch: use a flatter directory structure 2022-07-20 11:32:47 +02:00
embeddedt
d6e5200013
refactor(style): store constant property IDs with a pointer instead of directly (#3506) 2022-07-20 11:32:40 +02:00
Xiang Xiao
9ed5b3fe06
Sync up Kconfig with lv_config_template.h (#3508)
* fix(config): remove LV_COLOR_16_SWAP related stuff

follow commit 5369d7d473446a8953f2ea37b9116da918d3c8d2

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

* fix(config): remove LV_COLOR_SCREEN_TRANSP related stuff

follow commit 5369d7d473446a8953f2ea37b9116da918d3c8d2

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 11:29:34 +02:00
Gabor Kiss-Vamosi
965552e446 fix: make C tests work again 2022-07-19 17:37:36 +02:00
Gabor Kiss-Vamosi
6104855491 fix(conf): fix a lot of new config realted issues 2022-07-19 17:21:19 +02:00
Gabor Kiss-Vamosi
09301a0970 refactor(style): rename LV_STYLE_PROP_... to LV_STYLE_PROP_FLAG_... 2022-07-19 15:57:36 +02:00
Gabor Kiss-Vamosi
9add9acadb refactor(style): add width and height paramaters to style_size 2022-07-19 15:47:00 +02:00
_VIFEXTech
a6f7370d75
feat(imgfont): add option to use img cache to buffer img headers (#3504)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-19 13:33:55 +02:00
Gabor Kiss-Vamosi
5369d7d473
arch(conf, api) refactor lv_conf and some API (#3501)
Kconfig and MicroPython config is not updated yet.


* start to refactor lv_conf.h

* further mem refactoring

* create lv_mem_builtin.c/h

* update lv_conf_internal.h

* add lv_strlen and lv_strncpy

* rename LV_DRAW_COMPLEX to LV_USE_DRAW_MASK

* update lv_conf_template

* minor fix
2022-07-19 13:31:42 +02:00
Gabor Kiss-Vamosi
c03d817192 fix(animing): fix incorrect animation end value
fixes https://forum.lvgl.io/t/how-to-stop-the-animation-image-at-the-last-image/9374
2022-07-18 20:07:47 +02:00
Xiang Xiao
d44de4d311
chore(format): add LV_FORMAT_ATTRIBUTE to lv_table_set_cell_value_fmt (#3500)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:51:01 +02:00
_VIFEXTech
d11171d2bd
fix(obj): reset all input devices when disable obj (#3483)
* fix(obj): reset all input devices when disable obj

* remove const

* Replace lv_obj_reset_input with lv_indev_reset

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-15 14:21:11 +02:00
martaaay
11602976e9
fix(btnmatrix): tapping just outside a button in a button matrix can cause the last tapped button to repeat. (#3487) 2022-07-15 08:03:05 +02:00
Gabor Kiss-Vamosi
a2ebfb2571 fix(arc): fix arc knob invalidation in SYMMETRICAL mode
fixes #3465
2022-07-14 17:19:23 +02:00
Nuno Goncalves
891aee1e8e
fix(chart): fix unhandled branch (#3479)
If chart->type != LV_CHART_TYPE_LINE and != LV_CHART_TYPE_SCATTER and != LV_CHART_TYPE_BAR return sane values

Fixes GCC warning p_out->x may be used uninitialized in this function

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

Co-authored-by: Nuno Goncalves <nunog@fr24.com>
2022-07-13 20:57:39 +02:00
Gabor Kiss-Vamosi
5c5e15b629 chore: fix warning related to #3472 2022-07-13 17:48:08 +02:00
Gabor Kiss-Vamosi
b9a2977711 fix(style): make the style parameter const in lv_obj_add/remove_style functions
fixes #3472
2022-07-13 17:02:26 +02:00
Nuno Goncalves
7a8a643dff
fix: GCC warning cell_area.x1 and x2 may be used uninitialized in this function (#3478)
While the code is correct the rtl depedent initialization can't be tracked by GCC

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

Co-authored-by: Nuno Goncalves <nunog@fr24.com>
2022-07-13 17:00:45 +02:00
Xiang Xiao
ea1d670f06
chore(make): order the source files in *.mk (#3468)
* chore(make): sync component.mk with the last directory layout

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

* chore(make): order the source files in *.mk

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-13 16:51:52 +02:00
_VIFEXTech
aafa32aaeb
fix(bar): fix division by 0 (#3463)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-11 14:19:15 +02:00
Xiang Xiao
0e367d0a76
chore(config): fix the style issue in lv_conf_template.h (#3469)
* chore(config): fix the style issue in lv_conf_template.h

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

* chore(format): don't exclude lv_conf_internal.h from code-format.cfg

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-11 14:06:31 +02:00
Gabor Kiss-Vamosi
56a5742c77 fix(refr): fix lv_refr_get_top_obj
related to https://forum.lvgl.io/t/how-to-speed-up-the-v8-version/9091/21
2022-07-09 14:37:19 +02:00
Gabor Kiss-Vamosi
0eab027a33 fix(slider): fix knob drawing in symmetrical mode 2022-07-08 20:53:31 +02:00
Yobe Zhou
8f9c84420e
feat(ime_pinyin): add API to use 9-key numeric keypad (#3460)
Like the 9-key Pinyin input mode, it is customized to adapt to the small screen.

Co-authored-by: 100ask <team100ask@outlook.com>
2022-07-07 21:10:30 +02:00
Gabor Kiss-Vamosi
ecc8058641 fix(fonts): make built-in fonts work with v9 2022-07-07 09:05:40 +02:00
100ask
810f59c9ee
fix(ime_pinyin): fix 4 problems in ime-pinyin 9-key input mode (#3455)
1. Fix the problem of inputting Pinyin syllable AAA but actually getting BB result.
2. Fix the problem that the last letter in the Pinyin syllable cannot be deleted by the delete key in the 9-key input mode.
3. Fix array lv_btnm_def_pinyin_k9_map and array default_kb_ctrl_k9_map out of bounds.
4. Fix some other problems.
2022-07-07 07:01:11 +02:00
100ask
10e0b7a1ad
feat(ime_pinyin): add API to support 9-key input mode (#3447)
* feat(ime_pinyin): add API to support 9-key input mode

* some optimizations for lv_ime_pinyin

* Update lv_example_ime_pinyin_2.c

* Update src/extra/others/ime/lv_ime_pinyin.h

Co-authored-by: YobeZhou <smilezyb@163.com>
Co-authored-by: Yobe Zhou <33565334+YobeZhou@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-07-06 09:04:53 +02:00
_VIFEXTech
73114028d3
feat(font): add font placeholder drawing configuration (#3446)
* feat(font): add font placeholder drawing configuration

* Turn on placeholder by default in Kconfig

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* When disabled LV_USE_FONT_PLACEHOLDER set box_w=0

* Remove placeholder_font to get glyphs

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-05 16:42:46 +02:00
Gabor Kiss-Vamosi
5a06fce472 perf(draw): speed up non normal blend modes 2022-07-05 14:54:08 +02:00
Gabor Kiss-Vamosi
cbbace4ca5 chore: fix warning 2022-07-05 09:30:49 +02:00
Man, Jianting (Meco)
fb624e594f
fix(draw): conflict with external ALIGN define (#3336)
ALIGN is a common name, so that easily conflict with other components
2022-07-05 09:01:38 +02:00
Gabor Kiss-Vamosi
13c99fc4b6 fix(refr): fix memory write out of bounds issue 2022-07-05 08:58:03 +02:00
_VIFEXTech
23c8a91a11
feat(fsdrv): add posix lseek() error checking (#3444)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-04 15:03:49 +02:00
jadonmmiller
a06e11478e
fix(arc): fix bug with LV_ARC_MODE_REVERSE (#3417) (#3418) 2022-07-04 13:06:26 +02:00
Mariotaku
a1326dc31a
fix(fragment): memory leak of fragments #3438 (#3442) 2022-07-04 12:48:27 +02:00