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

6318 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
4516018ce7 refactor(draw_buf): rename vdb to draw_buf
It affected only local variables and comments
2021-03-14 13:57:53 +01:00
Xiang Xiao
d90759aaab
Minor fix for disp driver (#2135)
* fix(disp): correct the typo error in comment

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

* fix(disp): fix the field definition

1.change rotated from 3bits to 2bits since lv_disp_rot_t has only four value
2.change inv_p from 10bits to uint16_t to avoid the bit operation
3.reorder bg_opa to save the memory space

* fix(disp): remove the unnecessary field zero

since lv_memset_00 is already done for the main struct

* fix(disp): handle the out of memmory gracefully

* fix(disp): delete the refresh timer in lv_disp_remove

* fix(disp): handle NULL pointer correctly in lv_disp_[g|s]et_rotation

like other similar(allow NULL disp) functions

* fix(disp): call lv_area_set_[width|height] in lv_disp_drv_update

to remove one extra row and column
2021-03-14 13:46:35 +01:00
Xiang Xiao
54b8862609
fix(disp): rename lv_disp_get_buf to lv_disp_get_draw_buf (#2136)
follow up the commit:
commit e9cc1c2d4676b3863a85f35a79162ecedd280213
Author: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Date:   Wed Mar 10 13:07:15 2021 +0100

    feat(driver): raname lv_disp_buf_t to lv_disp_draw_buf_t + save only the drv's pointer in lv_disp_t
2021-03-14 13:44:01 +01:00
Gabor Kiss-Vamosi
a431569455 feat(fs driver): save only the pointer of the driver in lv_fs_drv_register 2021-03-14 13:42:32 +01:00
Gabor Kiss-Vamosi
7840f3577e feat(indev driver): save only the pointer of the input deveice driver in lv_indev_register() 2021-03-14 13:34:06 +01:00
Gabor Kiss-Vamosi
f0e17cad60 fix(chart): fix warning 2021-03-14 13:31:29 +01:00
Gabor Kiss-Vamosi
ea557d2b4c perf(chart): use raw line end on line chart if line_width == 1 2021-03-12 21:42:18 +01:00
Gabor Kiss-Vamosi
93ddf0b8fb feat(chart): chage to simpler line drawing if the number of points > chart width
If there are a lot of points always draw vertical lines.
Visually it's similar but much faster than drawing skewed antialaised lines.
2021-03-12 21:36:33 +01:00
Gabor Kiss-Vamosi
ca7d806eab fix(screen change): allow postion change on screens to make screen change animations work 2021-03-11 22:30:51 +01:00
Gabor Kiss-Vamosi
ae09ce5701 feat(style): remove style caching becasue it had no peformance benefit
and add custom user states
2021-03-11 21:05:11 +01:00
Gabor Kiss-Vamosi
ba69cb4dca fix compiler error with some logs 2021-03-11 19:38:51 +01:00
Gabor Kiss-Vamosi
2ffa8165c1 fix warning 2021-03-11 12:31:14 +01:00
Gabor Kiss-Vamosi
fbba11af37 fix(obj style) rename lv_obj_set_pad...() to lv_obj_set_style_pad...() 2021-03-11 12:28:49 +01:00
Gabor Kiss-Vamosi
48cd3809f6 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-03-11 12:21:10 +01:00
Gabor Kiss-Vamosi
751f1aa829 minor fixes 2021-03-11 12:21:03 +01:00
Gabor Kiss-Vamosi
f63f3408eb fix(chart): fix zooming on bar charts 2021-03-11 12:20:55 +01:00
Gabor Kiss-Vamosi
fb8faed097 fix(grid): support fr on LV_SIZE_CONTENT parents too 2021-03-11 12:20:09 +01:00
Gabor Kiss-Vamosi
e05af14af9 fix(flex): fix centering on small parents + renames 2021-03-11 12:18:59 +01:00
Themba Dube
28f2f9f922 fix(disp) mark new_drv as unused in lv_disp_drv_update 2021-03-10 20:58:30 -05:00
Themba Dube
39a1451fc6 fix(disp) remove pointless memcpy() 2021-03-10 20:54:41 -05:00
Themba Dube
d7f6d006b1 fix(obj,layouts) remove warning spam 2021-03-10 20:54:13 -05:00
Xiang Xiao
7bf547a928
feat(mem): switch the default allocator to tlsf (#2129)
* feat(mem): add initial version of tlsf

from  : https://github.com/mattconte/tlsf
commit: deff9ab509341f264addbd3c8ada533678591905

* feat(mem): switch the default allocator to tlsf

* fix(mem): remove the preserved small buffer

since the builtin allocator(tlsf) is fast enough now

* fix(mem): change LV_MEM_ADD_JUNK to 0

to speed up the normal operation
2021-03-10 15:13:35 +01:00
Gabor Kiss-Vamosi
91a44a465a fix tests 2021-03-10 13:12:45 +01:00
Gabor Kiss-Vamosi
73c4903d39 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-03-10 13:12:24 +01:00
Gabor Kiss-Vamosi
e9cc1c2d46 feat(driver): raname lv_disp_buf_t to lv_disp_draw_buf_t + save only the drv's pointer in lv_disp_t 2021-03-10 13:07:15 +01:00
Gabor Kiss-Vamosi
c230df0782 feat(flex): add LV_OBJ_FLAG_FLEX_IN_NEW_TRACK 2021-03-10 12:50:22 +01:00
Gabor Kiss-Vamosi
1b51f69116 fix(meter): fix off by one pixel issue on arcs and the order of tick indicators during drawing 2021-03-10 12:50:06 +01:00
Gabor Kiss-Vamosi
22c06a19bc minor fixes 2021-03-10 09:44:17 +01:00
Gabor Kiss-Vamosi
6169a2417d Merge branch 'dev' of https://github.com/lvgl/lvgl into dev 2021-03-09 09:23:51 +01:00
Gabor Kiss-Vamosi
a774aa439f fix(mask) fix off by one pixel issue with horizontal line masks 2021-03-09 09:23:43 +01:00
Gabor Kiss-Vamosi
94431f8aaf refactor(flex): change the name of teh built-in flex layouts 2021-03-08 23:30:27 +01:00
Gabor Kiss-Vamosi
289f8e4bac fix(table): refresh only the changed cell's height 2021-03-08 23:14:26 +01:00
Gabor Kiss-Vamosi
c01f54d206 fix warning 2021-03-08 20:41:11 +01:00
Gabor Kiss-Vamosi
fdbee4bf54 fix old function name 2021-03-08 20:31:14 +01:00
Gabor Kiss-Vamosi
e65e80c1f8 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-03-08 20:13:26 +01:00
Gabor Kiss-Vamosi
4f70bbf182 feat(font): make all fonts const 2021-03-08 20:08:51 +01:00
Gabor Kiss-Vamosi
cdbbdc36bb Merge branch 'feat/font-cache' into dev 2021-03-08 14:51:15 +01:00
Gabor Kiss-Vamosi
00860900b2 merge master 2021-03-08 14:46:55 +01:00
Xiang Xiao
54cab8a283
Minor fix for hal indev module (#2124)
* fix(hal indev): correct the typo and adjust the alignment

* fix(hal indev): remove the unnecessary forward declaration

* fix(hal indev): relayout the bitfiled to save space

* fix(hal indev): remove the unnecessary memory zero

* fix(hal indev): remove the initial hardcode value for scroll_throw
2021-03-08 14:44:39 +01:00
Gabor Kiss-Vamosi
430c91e40c fix(table): recalcualte the height only the necesasry rows 2021-03-08 10:22:58 +01:00
Gabor Kiss-Vamosi
34dfccd829 fix(refr): send LV_EVENT_COVER_CHECK 2021-03-06 13:11:31 +01:00
Xiang Xiao
7aab2b669c
fix(timer): change 'Task' to 'Timer' (#2125) 2021-03-05 14:02:19 -05:00
Gabor Kiss-Vamosi
42ab81cac5 add #ifs 2021-03-04 19:41:55 +01:00
Gabor Kiss-Vamosi
376da66dab feat(layout): automatically update the screen's layout in lv_obj_scroll_to_view 2021-03-03 21:10:49 +01:00
Gabor Kiss-Vamosi
0d38d100c2 feat(layout): add deferred layout recalculation 2021-03-03 20:15:21 +01:00
Gabor Kiss-Vamosi
3ecf550bcd fix(example) add trailing empty string in lv_example_textarea_1 2021-03-03 15:05:37 +01:00
Gabor Kiss-Vamosi
22fcb8009b fix(meter): use the arc styles of the meter during indicator drawing 2021-03-03 14:25:55 +01:00
Gabor Kiss-Vamosi
15ebc12b64 fix(draw): use arc_rounded instead of line_rounded property in lv_obj_init_draw_arc_dsc() 2021-03-03 14:25:55 +01:00
Xiang Xiao
8e55d42290
fix(style): remove allocated field from lv_style_t (#2121)
to simplify the code logic and extend prop_cnt to 256
2021-03-03 13:32:22 +01:00
Xiang Xiao
ffd9c47d3d
fix: remove the tail space after cast expression (#2122)
ensure the style consistency through the code base
2021-03-03 12:02:58 +01:00