This is an automated email from the ASF dual-hosted git repository.
lupyuen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 155805c2e63 video/fb: Trigger updatearea() if CONFIG_FB_UPDATE is
defined
155805c2e63 is described below
commit 155805c2e633d062f13bc5c51e490a3518932b1c
Author: Martin Vajnar <[email protected]>
AuthorDate: Fri Jun 5 14:37:46 2026 +0200
video/fb: Trigger updatearea() if CONFIG_FB_UPDATE is defined
When CONFIG_FB_UPDATE is defined the missing updatearea() trigger caused
the splashscreen to not be displayed.
Signed-off-by: Martin Vajnar <[email protected]>
---
drivers/video/fb.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index 4aaf7374d55..0c182be74b3 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -1934,6 +1934,9 @@ int fb_register_device(int display, int plane,
struct fb_panelinfo_s panelinfo;
#ifdef CONFIG_VIDEO_FB_SPLASHSCREEN
struct fb_planeinfo_s pinfo;
+# ifdef CONFIG_FB_UPDATE
+ struct fb_area_s area;
+# endif
#endif
struct fb_videoinfo_s vinfo;
char devname[16];
@@ -2041,6 +2044,24 @@ int fb_register_device(int display, int plane,
goto errout_with_paninfo;
}
+# ifdef CONFIG_FB_UPDATE
+ if (fb->vtable->updatearea == NULL)
+ {
+ goto errout_with_paninfo;
+ }
+
+ area.x = 0;
+ area.y = 0;
+ area.w = vinfo.xres;
+ area.h = vinfo.yres;
+
+ ret = fb->vtable->updatearea(fb->vtable, &area);
+ if (ret < 0)
+ {
+ goto errout_with_paninfo;
+ }
+# endif
+
if (SPLASH_SLEEP != 0)
{
nxsched_sleep(SPLASH_SLEEP);
@@ -2052,6 +2073,14 @@ int fb_register_device(int display, int plane,
{
goto errout_with_paninfo;
}
+
+# ifdef CONFIG_FB_UPDATE
+ ret = fb->vtable->updatearea(fb->vtable, &area);
+ if (ret < 0)
+ {
+ goto errout_with_paninfo;
+ }
+# endif
# endif
#endif