From c898461ca562738004afee5988fd38bea2cf848d Mon Sep 17 00:00:00 2001 From: rongyichang Date: Fri, 4 Aug 2023 15:23:31 +0800 Subject: [PATCH] video/fb: add xres and yres for fb overlay xres and yres of video overlay buffer may not same as primay framebuffer. so add it to check the framebuffer count of overlay Signed-off-by: rongyichang --- include/nuttx/video/fb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nuttx/video/fb.h b/include/nuttx/video/fb.h index 4a2650b9c61..cf8684f2bdd 100644 --- a/include/nuttx/video/fb.h +++ b/include/nuttx/video/fb.h @@ -546,6 +546,8 @@ struct fb_overlayinfo_s fb_coord_t stride; /* Length of a line in bytes */ uint8_t overlay; /* Overlay number */ uint8_t bpp; /* Bits per pixel */ + uint32_t xres; /* Horizontal resolution in pixel columns */ + uint32_t yres; /* Vertical resolution in pixel rows */ uint32_t xres_virtual; /* Virtual Horizontal resolution in pixel columns */ uint32_t yres_virtual; /* Virtual Vertical resolution in pixel rows */ uint32_t xoffset; /* Offset from virtual to visible resolution */