From 6fecb56aeebcb98a08ef8500b6124db69939ffb4 Mon Sep 17 00:00:00 2001 From: rongyichang Date: Mon, 26 Jun 2023 17:11:09 +0800 Subject: [PATCH] apps/examples: fix fb example show error For screens with transparency, the alpha value should be set to 0xFF Signed-off-by: rongyichang --- 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;