Commit Graph

6959 Commits

Author SHA1 Message Date
guoweilkd
0de30d7f56 fix(txt) enhance the function of break_chars (#2327)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-16 17:40:50 +02:00
Seb Fagard
bff9546c26 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-07-16 17:40:50 +02:00
Jozef Bastek
e74e6c27af 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-07-16 17:40:50 +02:00
Jozef Bastek
4766e97bc5 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-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
ebcb6c0224 fix(flex) fix layout update and invalidation issues 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
fbd88fe434 fix(flex) fix NULL pointer dereference
fixes #2331
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
de1f6e978e fix(obj, switch) do not send LV_EVENT_VALUE_CHANGED twice
fixes #2330
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
edb23d2640 fix(color) overflow with 16 bit color depth 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
dee6530b0b fix(coords) fix using large coordinates
Fixes #2323
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
68651c718a fix(chart) fix crash if no series are added
fixes #2322
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
90c878ee92 fix(chart) invalidation with LV_CHART_UPDATE_MODE_SHIFT 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
9acd70d9ec fix(align) fix lv_obj_align_to 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
d7e5b2983e fix(table) invalidate the table on cell value change 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
6d73386245 fix(label) remove dupliacted lv_obj_refresh_self_size 2021-07-16 17:40:49 +02:00
Gabor Kiss-Vamosi
502ca5b809 fix(draw) underflow in subpixel font drawing
Fixes: #2273
2021-07-16 17:40:49 +02:00
Gabor Kiss-Vamosi
62255ad153 fix (scroll) do not send unnecessary scroll end events 2021-07-16 17:40:49 +02:00
Gabor Kiss-Vamosi
16f576319c docs update CHANGELOG for v8.0.1 2021-06-14 13:45:19 +02:00
Gabor Kiss-Vamosi
f2c6f5dc9c update verson numbers to v8.0.1 v8.0.1 2021-06-14 13:41:36 +02:00
Gabor Kiss-Vamosi
f18e1eb967 docs(filesystem) update to v8 2021-06-14 13:29:23 +02:00
Gabor Kiss-Vamosi
4d334f5c72 fix(msgbox) create modals on top layer instead of act screen
To cover widgets on the top layer too
2021-06-14 13:29:07 +02:00
Gabor Kiss-Vamosi
7001f851da fix(colowheel) disable LV_OBJ_FLAG_SCROLL_CHAIN by default 2021-06-14 13:28:53 +02:00
Ali Rostami
b7e6230a89 docs(grid) typo fix (#2310) 2021-06-14 13:28:45 +02:00
dronecz
0c1105951d fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduino.ino 2021-06-14 13:28:30 +02:00
Gabor Kiss-Vamosi
58a169d757 fix(meter) fix needle image invalidation
Fixes #2300
2021-06-14 13:28:22 +02:00
Gabor Kiss-Vamosi
3847fd5b46 fix(mem) add lv_ prefix to tlsf functions and types
It avoids collision if tlsf is used by other libs in the project too
Fixes https://github.com/lvgl/lvgl/issues/2116#issuecomment-857765919
2021-06-14 13:28:13 +02:00
Gabor Kiss-Vamosi
7793e8b730 fix(calendar) fix the position calculation today
Fixes https://forum.lvgl.io/t/calendar-widget-bug-in-v8-0/5763
2021-06-14 13:27:55 +02:00
Rop Gonggrijp
e0cd31fe95 docs(color) language fixes (#2302) 2021-06-14 13:26:11 +02:00
Gabor Kiss-Vamosi
26c7f48756 fix conflict 2021-06-14 13:25:58 +02:00
Rop Gonggrijp
1deff8ed03 Spelling and other language fixes to documentation (#2293) 2021-06-14 13:24:32 +02:00
Gabor Kiss-Vamosi
ad9de31a05 fix(theme) show disabled state on buttons of btnmatrix, msgbox and kayboard 2021-06-14 13:24:22 +02:00
Gabor Kiss-Vamosi
d4d88ac642 fix(scroll) keep the scroll position on object deleted 2021-06-14 13:24:13 +02:00
Gabor Kiss-Vamosi
0cd5a15969 fix(msgbox) handle NULL btn map paramter 2021-06-14 13:24:04 +02:00
Gabor Kiss-Vamosi
19a6cff016 fix(group) allow refocusing obejcts
But do not send defocus event if the same obejct is refocused
2021-06-14 13:23:55 +02:00
embeddedt
790e1078d5 docs(overview) spelling fixes 2021-06-14 13:23:47 +02:00
Gabor Kiss-Vamosi
db1e56a90e chore(docs) minor formatting on example's GitHub link 2021-06-14 13:23:16 +02:00
Themba Dube
f76c01b4ca feat(docs) add view on GitHub link 2021-06-14 13:23:03 +02:00
Themba Dube
42d191c679 chore(lv_conf_template) fix spelling mistake
Also forces the docs to rebuild.
2021-06-14 13:22:37 +02:00
Gabor Kiss-Vamosi
054d933742 fix(theme) fix the switch style in the default theme
LVGL didn't see that the styles were changed in checked state therefore the switch wasn't invalidated.
2021-06-14 13:22:21 +02:00
Gabor Kiss-Vamosi
57839d8e7d docs fix typo 2021-06-14 13:22:12 +02:00
Gabor Kiss-Vamosi
5ca2528bff feat(event) pass the scroll aniamtion to LV_EVENT_SCROLL_BEGIN
Also add lv_example_tabview_2 for demonstration
2021-06-14 13:21:27 +02:00
Gabor Kiss-Vamosi
1afcd1691f fix(tabview) fix with left and right tabs 2021-06-14 13:21:18 +02:00
Gabor Kiss-Vamosi
8e60f28432 fix(template) udpate lv_objx_template to v8 2021-06-14 13:21:00 +02:00
Ali Rostami
a4b7ef4f50 Update quick-overview.md (#2295)
* Update quick-overview.md

* Update quick-overview.md

* Update lv_example_get_started_3.c

* Update coords.md
2021-06-14 13:20:43 +02:00
Gabor Kiss-Vamosi
70911accf5 fix(pxp) change LV_COLOR_TRANSP to LV_COLOR_CHROMA_KEY to v8 compatibility
Fixes #2289
2021-06-14 13:20:36 +02:00
Gabor Kiss-Vamosi
a4d854291a docs(color) minor fix 2021-06-14 13:20:24 +02:00
Gabor Kiss-Vamosi
9446a9aecb fix(example) revert test code 2021-06-14 13:20:17 +02:00
Gabor Kiss-Vamosi
bb6b8037cd fix(draw) with additive blending with 32 bit color depth 2021-06-14 13:20:04 +02:00
Gabor Kiss-Vamosi
bd5c8c0e12 docs(color) update colors' docs 2021-06-14 13:19:54 +02:00
KSam
d83258ab4a docs(lv_obj_style) update add_style and remove_style function headers (#2287) 2021-06-14 13:19:38 +02:00
guoweilkd
33e0926ae3 fix memory leak of spangroup (#2285)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-06-03 16:41:20 +02:00