mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 04:37:55 +08:00
feat(wayland): rewrite driver (#9195)
Co-authored-by: ychsiao168 <ychsiao168@pm.me>
This commit is contained in:
@@ -64,7 +64,11 @@ def parse_defaults(path: str):
|
||||
for line in file.readlines():
|
||||
if len(line.strip()) == 0 or line.startswith('#'):
|
||||
continue
|
||||
groups = re.search(r'([A-Z0-9_]+)\s+(.+)', line).groups()
|
||||
search_result = re.search(r'([A-Z0-9_]+)\s+(.+)', line)
|
||||
if not search_result:
|
||||
print(f"WARNING: Ignoring line {line}")
|
||||
continue
|
||||
groups = search_result.groups()
|
||||
defaults[groups[0]] = groups[1]
|
||||
|
||||
return defaults
|
||||
|
||||
@@ -218,10 +218,19 @@ LV_EXPORT_CONST_INT(LV_DRAW_BUF_ALIGN);
|
||||
#define LV_LOG_TRACE_ANIM 0
|
||||
#endif /*LV_USE_LOG*/
|
||||
|
||||
#if LV_USE_WAYLAND == 0
|
||||
#define LV_WAYLAND_USE_DMABUF 0
|
||||
#define LV_WAYLAND_WINDOW_DECORATIONS 0
|
||||
#endif /* LV_USE_WAYLAND */
|
||||
#if LV_USE_WAYLAND
|
||||
/*Automatically detect wayland backend*/
|
||||
#if LV_USE_G2D
|
||||
#define LV_WAYLAND_USE_G2D 1
|
||||
#define LV_WAYLAND_USE_SHM 0
|
||||
#else
|
||||
#define LV_WAYLAND_USE_G2D 0
|
||||
#define LV_WAYLAND_USE_SHM 1
|
||||
#endif
|
||||
#else
|
||||
#define LV_WAYLAND_USE_G2D 0
|
||||
#define LV_WAYLAND_USE_SHM 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_LINUX_DRM == 0
|
||||
#define LV_LINUX_DRM_USE_EGL 0
|
||||
|
||||
Reference in New Issue
Block a user