Commit Graph

6990 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
2e942060f0 Update versions to v8.0.2 v8.0.2 2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
346b9979dc fix(theme) improve button focus of keyboard
fixes https://github.com/lvgl/lvgl/issues/2359#issuecomment-880704341
2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
e742455be2 fix(tabview) send LV_EVENT_VALUE_CHANGED only once
Fixes #2377
2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
de8b0ad834 fix(imgbtn) use the correct src in LV_EVENT_GET_SELF_SIZE 2021-07-16 17:40:51 +02:00
Themba Dube
04bae5f006 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-16 17:40:51 +02:00
Gabor Kiss-Vamosi
7bd924bd4d fix(obj style) fix children reposition if the parent's padding changes.
fixes #2368
2021-07-16 17:40:51 +02:00
embeddedt
7f7b9670d9 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-16 17:40:51 +02:00
HX2003
31d49d1527 fix(spinner) should not be clickable (#2373) 2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
64728e7d0a fix(obj) improve how the focusing indev is determined 2021-07-16 17:40:51 +02:00
embeddedt
2c1d9e868d fix(template) update indev template for v8
A few APIs were missed in the last attempt.

Fixes #2363
2021-07-16 17:40:51 +02:00
Themba Dube
be67fa1cec fix(printf) skip defining attribute if pycparser is used 2021-07-16 17:40:51 +02:00
Avamander
e62d43c83a 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-16 17:40:51 +02:00
Gabor Kiss-Vamosi
3e11cf38a9 fix(template) include lvgl.h in lv_port_*_template.c files
fixes: #2361
2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
5b4c61a871 fix(obj) detecting which indev sent LV_EVENT_FOCUS
fixes #2359
2021-07-16 17:40:51 +02:00
guoweilkd
b415e2d122 fix (span) fill LV_EVENT_GET_SELF_SIZE (#2360)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
05ca75e8ea fix(arc) disable LV_OBJ_FLAG_SCROLL_CHAIN by default 2021-07-16 17:40:51 +02:00
Gabor Kiss-Vamosi
752ac98d96 fix (draw) fix arc bg image drawing with full arcs 2021-07-16 17:40:51 +02:00
xaowang96
c4ff3ccc14 fix(disp) fix memory leak in lv_disp_remove (#2355)
Co-authored-by: wangxuedong <wangxuedong@xiaomi.com>
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
a4915d3a34 fix warnigs introduced by 3fb8baf5 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
43638ceb4b fix(widgets) use lv_obj_class for all the widgets
Related to #2346
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
dfef40dbe6 fix(obj) move clean ups from lv_obj_del to lv_obj_destructor 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
e0cc92ddec fix(roller) fix partial redraw of the selected area 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
c774c26ac1 fix(roller) adjust the size of the selected area correctly
fixes #2340
2021-07-16 17:40:50 +02:00
guoweilkd
8eb99b0e4e fix(obj) delete useless type conversion (#2343)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-16 17:40:50 +02:00
guoweilkd
4fa45941fc fix(lv_obj_scroll.h) typos (#2345)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-16 17:40:50 +02:00
embeddedt
0d09025e70 fix(scroll) fire LV_EVENT_SCROLL_BEGIN in the same spot for both axes 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
335b55e932 fix(btnmatrix) fix button invalidation on focus change 2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
01ca590c6d fix(textarea) style update in oneline mode + improve sroll to cursor
fixes: #2335
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
4ac4d87fff fix(tlsf) do not use <assert.h>
fixes: #2341
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
8080b5f718 fix(imgbtn) consider width==LV_SIZE_CONTENT if only mid. img is set
fixes #2305
2021-07-16 17:40:50 +02:00
Gabor Kiss-Vamosi
4faede19e9 fix(refr) reduce the nesting level in lv_refr_area 2021-07-16 17:40:50 +02:00
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