1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

3940 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
04c515adac fix(imgbtn) use the correct src in LV_EVENT_GET_SELF_SIZE 2021-07-16 11:57:49 +02:00
Themba Dube
157534cdbf fix(color) remove extraneous cast for 8-bit color
This brings it in line with the corresponding macros for other BPP values.

This issue was found via CI added in the following commit.
2021-07-15 17:11:53 -04:00
Gabor Kiss-Vamosi
57cf6610a9 fix(obj style) fix children reposition if the parent's padding changes.
fixes #2368
2021-07-15 20:42:11 +02:00
embeddedt
d79ca388ef
fix(color) remove extraneous _LV_COLOR_MAKE_TYPE_HELPER (#2372)
This updates it to match the other `LV_COLOR_MAKEXX` (where XX is the color depth) lines.
2021-07-15 17:57:30 +02:00
HX2003
b3c86208a0
fix(spinner) should not be clickable (#2373) 2021-07-15 16:00:42 +02:00
Gabor Kiss-Vamosi
76a8293375 fix(indev) focus on objects on release instead of press
Previously if the obejct were pressed and scrolled the parent by scroll chaining
focus event were sent. If the focusing is moved to the release phase we can detect if there were scroll.
2021-07-13 16:58:26 +02:00
Gabor Kiss-Vamosi
a04f2dea64 fix(obj) improve how the focusing indev is determined 2021-07-13 16:35:57 +02:00
Themba Dube
ee9bbea29c fix(printf) skip defining attribute if pycparser is used 2021-07-11 15:27:30 -04:00
Avamander
078eaa009d
refactor(printf) add printf-like function attribute to _lv_txt_set_text_vfmt and lv_label_set_text_fmt (#2332)
This improves static analysis and compiler warnings of incorrect format usage.
2021-07-11 15:19:51 -04:00
Gabor Kiss-Vamosi
f03d4b8cb9 fix(obj) detecting which indev sent LV_EVENT_FOCUS
fixes #2359
2021-07-08 17:04:15 +02:00
guoweilkd
2a6bfe8cf9
fix (span) fill LV_EVENT_GET_SELF_SIZE (#2360)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-08 16:40:43 +02:00
Gabor Kiss-Vamosi
84c00862ae docs minor typo fixes 2021-07-07 16:30:17 +02:00
Gabor Kiss-Vamosi
88c485949f feat(event, widgets) improve the paramter of LV_EVENT_DRAW_PART_BEGIN/END
Add lv_<widget>_draw_part_type_t to widgets to precisly describe the hooked drawings.
Also add class_p element to lv_obj_draw_part_dsc_t to show what widgets lv_<widget>_draw_part_type_t needs to be used.

Related to: https://forum.lvgl.io/t/how-to-add-minor-division-lines-to-a-chart/5366/
2021-07-07 16:19:06 +02:00
Gabor Kiss-Vamosi
f172eb3fd7 fix(arc) disable LV_OBJ_FLAG_SCROLL_CHAIN by default 2021-07-07 16:19:06 +02:00
Gabor Kiss-Vamosi
c3b6c6dc64 fix (draw) fix arc bg image drawing with full arcs 2021-07-07 16:19:06 +02:00
xaowang96
ab7e0eb2b6
fix(disp) fix memory leak in lv_disp_remove (#2355)
Co-authored-by: wangxuedong <wangxuedong@xiaomi.com>
2021-07-07 13:05:12 +02:00
Gabor Kiss-Vamosi
e3024032dc fix warnigs introduced by 3fb8baf5 2021-07-06 13:55:16 +02:00
Gabor Kiss-Vamosi
3fb8baf503 fix(widgets) use lv_obj_class for all the widgets
Related to #2346
2021-07-06 13:52:12 +02:00
Gabor Kiss-Vamosi
b06393747f fix(obj) move clean ups from lv_obj_del to lv_obj_destructor 2021-07-06 13:52:12 +02:00
Gabor Kiss-Vamosi
6bc40f8c44 fix(roller) fix partial redraw of the selected area 2021-07-05 15:44:40 +02:00
Gabor Kiss-Vamosi
01d1c873e1 fix(roller) adjust the size of the selected area correctly
fixes #2340
2021-07-05 14:12:58 +02:00
guoweilkd
a8aadb3fcd
fix(lv_obj.h)typos (#2350)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-05 11:47:35 +02:00
guoweilkd
93e40c71ec
fix(obj) delete useless type conversion (#2343)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-02 14:35:47 -04:00
guoweilkd
21d28a6bc9
fix(lv_obj_scroll.h) typos (#2345)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-02 14:35:17 -04:00
embeddedt
b1589326d4
fix(scroll) fire LV_EVENT_SCROLL_BEGIN in the same spot for both axes 2021-07-02 10:43:34 -04:00
Gabor Kiss-Vamosi
ebb9ce913e perf(obj) remove lv_obj_get_child_cnt from cycle limit checks 2021-07-01 21:49:04 +02:00
Gabor Kiss-Vamosi
77cedfa08f fix(btnmatrix) fix button invalidation on focus change 2021-07-01 16:58:24 +02:00
Gabor Kiss-Vamosi
60d9a5e493 fix(textarea) style update in oneline mode + improve sroll to cursor
fixes: #2335
2021-07-01 15:33:50 +02:00
Gabor Kiss-Vamosi
c9745b9c4e fix(tlsf) do not use <assert.h>
fixes: #2341
2021-07-01 14:20:56 +02:00
Gabor Kiss-Vamosi
fcd4aa3924 feat(led) send LV_EVENT_DRAW_PART_BEGIN/END
fixes
https://forum.lvgl.io/t/how-to-change-the-border-color-of-led-object-in-lvgl-v8/5996
https://forum.lvgl.io/t/set-border-color-of-led-object/5986
2021-06-28 15:33:05 +02:00
Gabor Kiss-Vamosi
7e49f48894 fix(imgbtn) consider width==LV_SIZE_CONTENT if only mid. img is set
fixes #2305
2021-06-28 13:48:45 +02:00
Gabor Kiss-Vamosi
eb70e2b37a Merge branch 'feat/test-unity' 2021-06-28 11:01:42 +02:00
Gabor Kiss-Vamosi
e0ae2aa106 feat(chart) send LV_EVENT_DRAW_PART_BEGIN/END before/after the division line drawing section.
See https://forum.lvgl.io/t/how-to-add-minor-division-lines-to-a-chart/5366/15
2021-06-25 13:51:09 +02:00
Gabor Kiss-Vamosi
845c4080f5 Merge branch 'master' into feat/test-unity 2021-06-23 22:20:00 +02:00
Gabor Kiss-Vamosi
e66b935061 fix(dropdown) forget the selected option on encoder longpress 2021-06-23 21:53:16 +02:00
Gabor Kiss-Vamosi
3672f87332 test move more source files to src folder 2021-06-23 13:23:47 +02:00
Gabor Kiss-Vamosi
ad04307d3f Merge branch 'master' into feat/test-unity 2021-06-23 12:51:26 +02:00
Gabor Kiss-Vamosi
2df12827dd fix(refr) reduce the nesting level in lv_refr_area 2021-06-22 20:39:47 +02:00
guoweilkd
973a4e08d5
fix(txt) enhance the function of break_chars (#2327)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-06-22 14:42:39 +02:00
Gabor Kiss-Vamosi
13ed195354
Merge pull request #2313 from NXPmicro/nxp_pxp_vglite_v8-dev
Nxp pxp vglite v8 dev
2021-06-22 11:50:28 +02:00
Gabor Kiss-Vamosi
5bd82b038b fix(flex) fix layout update and invalidation issues 2021-06-22 11:08:33 +02:00
Gabor Kiss-Vamosi
97ba12f280 fix(flex) fix NULL pointer dereference
fixes #2331
2021-06-22 10:26:37 +02:00
Gabor Kiss-Vamosi
713b39ecdb fix(obj, switch) do not send LV_EVENT_VALUE_CHANGED twice
fixes #2330
2021-06-22 10:06:28 +02:00
Seb Fagard
00c3eb197c fix(pxp): update RTOS macro for SDK 2.10
replace FSL_RTOS_FREE_RTOS by SDK_OS_FREE_RTOS in order to be aligned
with MCU SDK 2.10.
See MCUX-41577.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
2021-06-21 10:53:38 +02:00
Jozef Bastek
e3e3eeaf8c fix(vglite): update for v8
includes updates coming from NXP MCU SDK 2.10 with adaptation for lvgl v8:

Fixed BLIT offset computation

Previous implementation didn't take into account a possibility of
non-zero offset in source image, so output was wrong if offset was used.
With this fix, CPU and VG-Lite output is the same even with offsets.

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: vglite: Buffer sync with BLITs

Added buffer synchronisation with BLITs instead of memcpy for VG-Lite.
In LVGL v8, buffer synchronisation acceleration is moved to littlevgl_support.c.

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: vglite: Fixed BLIT boundary

Fixed artifact issue revealed by buffer sync with BLIT feature. Caused
by wrong BLIT boundary.

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: vglite: BLIT quality degradation workaround for RT595

Limitation in RT595 causes BLIT image quality degradation when
coordinates are above 368 px. This patch implements workaround that will
break the BLIT into multiple smaller BLITs, so the quality is not
affected for higher resolutions.

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: vglite: Fix address alignment and stride requirements

Fixed multiple issues:
- The VGLite alignment requirement checks for the pixel destination
buffer are not applicable in our case of Linear (non-tiled) format.
- Some VGLite stride requirement requirement should be expressed in bytes,
not in pixels.
- Fix the Y alignment function to ensure that line starts at an address
that the respects the alignment requirement of VG-Lite.

Such mistakes do not break application,
but cause a fallback to non-accelerated Blit by CPU.
See MGG-741.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

gpu: vglite: fix some MISRA C 2012 violations

fixed 56 violations: mainly implicit format casts
and unchecked returned values.

see JIRA MCUX-43327

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

gpu: vglite: fix stride requirement in _init_vg_buf()

fix unit: need to convert the alignment requirement into bytes when checking
stride parameter.
fix condition: stride requirement applies only on source buffers.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

gpu: vglite: updates for v8

cache callback type changed in display driver struct

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

gpu: vglite: update parameter type for v8

display driver is now a pointer in structure.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
2021-06-21 10:53:38 +02:00
Jozef Bastek
8a2a4a11c8 fix(pxp): update for v8
includes updates from NXP MCU SDK 2.10 with adaptation for lvgl v8:

Updated cache handling

- range limited cache flushing changed to complete cache flush, which is
faster and shold be safe
- flushing done via callback system, so OS specific code is removed
from LVGL

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: pxp: Buffer sync with BLITs

Added buffer synchronisation with BLITs instead of memcpy for PXP.
In LVGL v8, buffer synchronisation acceleration is moved to littlevgl_support.c.

Signed-off-by: Jozef Bastek <jozef.bastek@nxp.com>

gpu: pxp: updates for v8

cache callback type changed in display driver struct
chroma key name changed

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

gpu: pxp: new log header file for v8

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>

core: init PXP accelerator

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
2021-06-21 10:53:38 +02:00
Gabor Kiss-Vamosi
b203167c75 feat(obj) send LV_EVENT_DRAW_PART_BEGIN/END for MAIN and SCROLLBAR parts 2021-06-20 12:35:10 +02:00
Gabor Kiss-Vamosi
fe6d8d7636 fix(color) overflow with 16 bit color depth 2021-06-20 12:35:10 +02:00
Gabor Kiss-Vamosi
e35b1d04bd test add build test again, add dropdown test, integrate gcov and gvocr 2021-06-18 14:13:41 +02:00
dyktronix
7066c8fbbb
feat(spinbox ) add function to set cursor to specific position (#2314)
* Spinbox set cursor to specific position (funct.)

* changed exp10 to lv_pow(10

* Update lv_spinbox.c

resolved indentation

* Update spinbox.md

Added lv_spinbox_set_pos description

Co-authored-by: Sebastian Dyker <sebastian.dyker@walther-systemtechnik.com>
2021-06-17 13:43:19 +02:00