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

5822 Commits

Author SHA1 Message Date
embeddedt
5d3fce8208
fix(gauge,linemeter) draw critical sections/end value in correct spot (#2059)
Revert be4f7a76d48112edce88d259470222aa4990ad52 and
20d56ee6e97905f56eb71d30c9a391d4b4d7eb20 as they both have issues.
2021-02-08 10:45:32 +01:00
Carlos Diaz
fd74f6985a
Kconfig: Add comments to primary and secondary colors (#2048) 2021-02-08 10:41:51 +01:00
Vitaly Puzrin
dfc6719479
Improve OpenCollective link (#2054)
Will show better icon
2021-02-03 08:54:17 -05:00
Gabor Kiss-Vamosi
2181dd858b
Update FUNDING.yml 2021-02-03 11:46:08 +01:00
Gabor Kiss-Vamosi
fe47caf161 update CHANGELOG 2021-02-03 10:31:20 +01:00
Gabor Kiss-Vamosi
8b78688c79 fix(text): fix out of bounds read in _lv_txt_get_width 2021-02-03 10:29:45 +01:00
Gabor Kiss-Vamosi
1b25649483 Merge branch 'fix/indev' 2021-02-03 10:06:18 +01:00
Gabor Kiss-Vamosi
0631b17076 fix(indev): clear the indev's act_obj in lv_indev_reset
fixes #2052
2021-02-03 10:06:07 +01:00
Gabor Kiss-Vamosi
cc8b564352 Update master version 2021-02-02 15:17:59 +01:00
Gabor Kiss-Vamosi
81e5690b2c Release v7.10.0 v7.10.0 2021-02-02 15:12:11 +01:00
Gabor Kiss-Vamosi
222afe9e9b
Update CHANGELOG.md 2021-02-02 15:00:53 +01:00
embeddedt
b38ceb52eb
fix(lv_version) add proper C++ prototype to functions 2021-02-01 08:55:03 -05:00
Xiang Xiao
ced4f2a61f
fix(font): load_glyph calculate the wrong size(one byte short) of last glyph (#2042)
* fix(font): load_glyph calculate the wrong size(one byte short) of last glyph

* Print the banner before running the font test
2021-02-01 12:09:16 +01:00
Carlos Diaz
5e8d053adf
fix(issue-templates) correct typos in dev-discussion.md (#2047) 2021-01-31 13:11:08 -05:00
embeddedt
9fa5216263
fix(spinbox) cast ext_attr for C++ (#2051) 2021-01-31 12:51:23 -05:00
minyiky
27154b632c
feat(spinbox) add get_step function (#2051)
Adds a static inline function to allow access to the step parameter for the spinbox widget
2021-01-31 11:40:57 -05:00
Xiang Xiao
9003f4a9e3
Fix various issues found in font module(2) (#2044)
* fix(font): Remove the unnecessary and duplicated inclusion

and correct some wrong comment too

* fix(font): Handle the out of memory gracefully in decompression case

and remove the check of gdsc since it is impossible to become null

* fix(font): Use the correct type to avoid the cast and shift

* fix(font): Change the bit field width to occupy the whole byte
2021-01-28 09:48:26 +01:00
Xiang Xiao
1e91569763
Fix various issues found in font module (#2040)
* fix(font): Correct _LV_STR_SYMBOL_ generation command

and add _LV_STR_SYMBOL_BULLET to the list

* fix(font): lv_font_load shouldn't call lv_fs_close if lv_fs_open fail

* fix(font): read_bits should return 0 not -1 in error case

to avoid read_bits_signed waste time to extend the sign bit

* fix(font): Correct the return type of read_bits to unsgined int

and extend the sign bit more efficient and correct

* fix(font): Sync LV_FONT_FMT_TXT_CMAP_ value to binary font spec

and then remove the hard code value from source code:
https://github.com/lvgl/lv_font_conv/blame/master/doc/font_spec.md#L96
remove zero fields statement too since font_dsc->cmaps already zero at line 334.

* fix(font): Improve the performance by reading cmap table by once

* fix(font): Improve the loading performance if the header is multipled by 8bits

* fix(font): Read loca table in batch if the size is 32bits

* fix(font): Load the underline related attributes

spec here:
https://github.com/lvgl/lv_font_conv/blame/master/doc/font_spec.md#L55-L56
2021-01-27 11:20:36 +01:00
Gabor Kiss-Vamosi
df3cf24db4 fix(indev): fix implementation of LV_PROTECT_EVENT_TO_DISABLED 2021-01-27 10:37:38 +01:00
Gabor Kiss-Vamosi
b6db434c21 fix(btnmatrix): fix lv_btnmatrix_get_active_btn_text() when used in a group 2021-01-27 10:00:08 +01:00
embeddedt
19f769f1d7
Fix incorrect version for new feature in CHANGELOG 2021-01-26 12:18:33 -05:00
scandermore
dacca6eeb8
feat(indev) allow input events to be passed to disabled objects (#2033) 2021-01-26 12:16:47 -05:00
Linch
eaacde6722
fixs draw pattern stack-use-after-scope error (#2030)
* fixs draw pattern stack-use-after-scope error

* Update CHANGELOG.md
2021-01-20 11:57:33 +01:00
Gabor Kiss-Vamosi
762c0a3274
Update ROADMAP.md 2021-01-20 11:56:54 +01:00
Gabor Kiss-Vamosi
f6fe3dcc8c
Update ROADMAP.md 2021-01-19 15:57:27 +01:00
Gabor Kiss-Vamosi
011f105038 Merge branch 'master' of https://github.com/littlevgl/lvgl 2021-01-19 14:54:10 +01:00
Gabor Kiss-Vamosi
aaf4ee95f1 fix(release script) add missed merging of lv_examples to release branch 2021-01-19 14:53:54 +01:00
Gabor Kiss-Vamosi
7740085a08 Merge branch 'master' into dev 2021-01-19 14:36:38 +01:00
Gabor Kiss-Vamosi
0aefab358b Release v7.9.1 v7.9.1 2021-01-19 14:36:38 +01:00
Gabor Kiss-Vamosi
b639ddc3bc
Update CHANGELOG.md 2021-01-19 14:32:22 +01:00
Gabor Kiss-Vamosi
c03ffd7c3c
Update CHANGELOG.md 2021-01-19 14:31:47 +01:00
github-actions[bot]
32b2381168
Merge 60be7c1ceecf26bcc7413e80ddb2f154a5f6b5e5 into dev 2021-01-19 09:09:03 +00:00
Xiang Xiao
60be7c1cee
Fix minor issues found in task module (#2029)
* fix(task): Remove the unnecessary cast and init

and correct the comment too

* fix(task): Implement lv_task_create directly

to avoid lv_task_set_prio which is a time consuming operation.

* fix(task): Exclude the return value computing from the idle time

and change handler_start and time_till_next to local variables

* fix(task): Remove zero task_deleted and task_created in lv_task_exec

since the loop in lv_task_handler already do the same thing
2021-01-19 10:08:30 +01:00
github-actions[bot]
3dbaa25911
Merge a637f415d77053782cc18c12e9c6d0fb0240ac1f into dev 2021-01-18 08:14:19 +00:00
Xiang Xiao
a637f415d7
Fix minor issue found in color module (#2024)
* fix(color): Return the opposite value in lv_color_premult when LV_COLOR_DEPTH equals 1

and correct the comment too

* fix(color): Correct the comment and alignment issue

* fix(color): Remove LV_COLOR_[SET|GET]_G16_SWAP

to simplify LV_COLOR_16_SWAP process

* fix(color): Correct the cast usage

* fix(color): Remove LV_MATH_ABS in lv_color_rgb_to_hsv

since delta can never become a negative number

* fix(color): Align LV_COLOR_[SET|GET]_A1 with other similar macro
2021-01-18 09:13:42 +01:00
github-actions[bot]
680d537607
Merge c9b97feea87b820a68de0b78c6adb61a1527e042 into dev 2021-01-17 14:04:07 +00:00
Xiang Xiao
c9b97feea8
fix(formatting): various improvements (#2028)
* fix(formatting): Remove the duplicated space

* fix(formatting): Remove the duplicated 'the'

* fix(spell): run codespell -w for the code base
2021-01-17 09:03:31 -05:00
github-actions[bot]
bb2d633e33
Merge 873551bb5e84c259404f3897be6d5ca2584d9e1c into dev 2021-01-15 19:31:51 +00:00
Xiang Xiao
873551bb5e
fix(area): minor improvements (#2023)
* fix(area): Correct r_sqrd and dist(int32_t to uint32_t)

since these two variables never become negative

* fix(area): Return early in _lv_area_is_in if pointer outside area

The origin code always does the full check if radius != 0, but it
is unnecessary when is_in equals true.
2021-01-15 14:31:16 -05:00
github-actions[bot]
31622a811d
Merge bc25998c5b2acc347eade7d3dac29675d81476b8 into dev 2021-01-12 18:26:55 +00:00
Xiang Xiao
bc25998c5b
Minor fix found in mem module (#2014)
* fix(mem): Utilize ALIGN_MASK as much as possible

to avoid check LV_ARCH_64 again and again and
correct the comment about MEM_UNIT

* fix(mem): Simplify _lv_memset implementation by SET8/SET32/REPEAT8 macro

* fix(mem): Handle the out of memory gracefully in _lv_mem_buf_get

don't modify the state in the failure

* fix(mem): Remove the unnecessary memset, memcpy and assignment
2021-01-12 19:26:26 +01:00
github-actions[bot]
febe314b3b
Merge 9ca4ffd64db6fb00bc71bada2db232e6337c9b69 into dev 2021-01-12 16:02:18 +00:00
Xiang Xiao
9ca4ffd64d
fix(format) correct comments in lv_gc.h, lv_ll.h and lv_log.h (#2016) 2021-01-12 11:01:45 -05:00
github-actions[bot]
8e93df38a1
Merge d6ca15a74923f2e86ce1e4ee6ee83bb2bbc887b8 into dev 2021-01-12 15:14:18 +00:00
Xiang Xiao
d6ca15a749
Move LV_GC_INCLUDE to the common place(gc.h) (#2010)
* Move LV_GC_INCLUDE to the common place(gc.h)

to avoid the duplication in many source files

* fix(theme template): Always initialize _lv_theme_material_styles

just like what other theme do
2021-01-12 16:13:41 +01:00
github-actions[bot]
49124b4ef0
Merge 486053012dd970211315efbe9e7f56d77935725c into dev 2021-01-12 11:16:38 +00:00
Xiang Xiao
486053012d
Various fs module fix and improvement (#2019)
* fix(fs): Check driver ready in lv_fs_dir_open and lv_fs_free_space

* fix(fs): Avoid the memory leak in lv_fs_open and lv_fs_dir_open

* fix(fs): Fix typo error in lv_fs_trunc(tell_cb should be trunc_cb)

* fix(fs): Make lv_fs_dir_close same as lv_fs_close when dir_close_cb equals NULL

* fix(fs): Handle the struct cleanup correctly

* improve(fs): Don't allocate memory when file_size or rddir_size equal zero

pass the address of file_d or dir_d to open_cb or dir_open_cb instead, so
implementor can point file_d/dir_d to other location. In many cases(POSIX),
file system will allocate the context for us, this improvement could avoid
we allocate the 4/8 bytes intermediate space.
2021-01-12 12:16:02 +01:00
github-actions[bot]
47ad247988
Merge c083d19b52a3f6b9460cb919b15e4e6ad37de1f5 into dev 2021-01-12 11:07:33 +00:00
Xiang Xiao
c083d19b52
Minor fix found in async module (#2015)
* fix(async): Move lv_async_info_t from lv_async.h to lv_async.c

since the user don't need know the implementation detail

* fix(async): Don't set user_data again

since lv_task_create already save it for us
2021-01-12 12:07:00 +01:00
github-actions[bot]
f170e1d2ec
Merge 138fcfec7955c1f37a5bf2372a25bc08cbcb0dc5 into dev 2021-01-12 11:00:50 +00:00