This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6fecb56ae apps/examples: fix fb example show error
6fecb56ae is described below
commit 6fecb56aeebcb98a08ef8500b6124db69939ffb4
Author: rongyichang <[email protected]>
AuthorDate: Mon Jun 26 17:11:09 2023 +0800
apps/examples: fix fb example show error
For screens with transparency, the alpha value should be set to 0xFF
Signed-off-by: rongyichang <[email protected]>
---
examples/fb/fb_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c
index 39f0c9f80..bb80377ac 100644
--- a/examples/fb/fb_main.c
+++ b/examples/fb/fb_main.c
@@ -105,7 +105,7 @@ static void draw_rect32(FAR struct fb_state_s *state,
dest = ((FAR uint32_t *)row) + area->x;
for (x = 0; x < area->w; x++)
{
- *dest++ = g_rgb24[color];
+ *dest++ = g_rgb24[color] | 0xff000000;
}
row += state->pinfo.stride;