Skip to content

Commit ea6d276

Browse files
authored
fix(Kconfig): add Kconfig for draw buf alignments and obj. style cache (lvgl#4457)
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
1 parent 6b8d1e9 commit ea6d276

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ menu "LVGL configuration"
5151
192: round up from x.25
5252
254: round up
5353

54+
config LV_OBJ_STYLE_CACHE
55+
bool "Use cache to speed up getting object style properties"
56+
default y
57+
5458
config LV_COLOR_CHROMA_KEY_HEX
5559
hex "Images pixels with this color will not be drawn (if they are chroma keyed)."
5660
range 0x000000 0xFFFFFF
@@ -150,6 +154,24 @@ menu "LVGL configuration"
150154
menu "Feature configuration"
151155

152156
menu "Drawing"
157+
config LV_DRAW_BUF_STRIDE_ALIGN
158+
int "Buffer stride alignment"
159+
default 1
160+
help
161+
Align the stride of all layers and images to this bytes.
162+
163+
config LV_DRAW_BUF_ALIGN
164+
int "Buffer address alignment"
165+
default 4
166+
help
167+
Align the start address of draw_buf addresses to this bytes.
168+
169+
config LV_LAYER_MAX_MEMORY_USAGE
170+
int "Max layer memory usage(kB)"
171+
default 150
172+
help
173+
Max. memory to be used for layers.
174+
153175
config LV_USE_DRAW_SW
154176
bool "Enable software rendering"
155177
default y

0 commit comments

Comments
 (0)