Expose SDL2 fullscreen mode as configuration option. The default
is disabled, which matches the SDL2 backend configuration in LVGL.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Fabio Estevam <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
---
 meta-oe/recipes-graphics/lvgl/lv-conf.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc 
b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
index 97063adbc..85c08b0d5 100644
--- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc
+++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
@@ -9,6 +9,7 @@ LVGL_CONFIG_USE_EVDEV = 
"${@bb.utils.contains_any('PACKAGECONFIG', 'drm fbdev',
 LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', 
'0', d)}"
 
 LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', 
d)}"
+LVGL_CONFIG_SDL_FULLSCREEN ?= "0"
 
 LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
 LVGL_CONFIG_LV_COLOR_DEPTH ?= "32"
@@ -30,6 +31,7 @@ do_configure:append() {
         -e "s|\(^#define LV_USE_SDL \).*|#define LV_USE_SDL 
${LVGL_CONFIG_USE_SDL}|g" \
         -e "s|\(^#define LV_USE_DRAW_SDL \).*|#define LV_USE_DRAW_SDL 
${LVGL_CONFIG_USE_SDL}|g" \
         -e "s|\(^    #define LV_SDL_BUF_COUNT \).*|    #define 
LV_SDL_BUF_COUNT 2|g" \
+        -e "s|\(^    #define LV_SDL_FULLSCREEN \).*|    #define 
LV_SDL_FULLSCREEN ${LVGL_CONFIG_SDL_FULLSCREEN}|g" \
         \
         -e "s|\(^#define LV_COLOR_DEPTH \).*|#define LV_COLOR_DEPTH 
${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \
         -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109284): 
https://lists.openembedded.org/g/openembedded-devel/message/109284
Mute This Topic: https://lists.openembedded.org/mt/104900051/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to