apps/examples: fix fb example show error

For screens with transparency, the alpha value should be set to 0xFF

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
This commit is contained in:
rongyichang 2023-06-26 17:11:09 +08:00 committed by Alin Jerpelea
parent 53cb2a947d
commit 6fecb56aee

View File

@ -105,7 +105,7 @@ static void draw_rect32(FAR struct fb_state_s *state,
dest = ((FAR uint32_t *)row) + area->x; dest = ((FAR uint32_t *)row) + area->x;
for (x = 0; x < area->w; x++) for (x = 0; x < area->w; x++)
{ {
*dest++ = g_rgb24[color]; *dest++ = g_rgb24[color] | 0xff000000;
} }
row += state->pinfo.stride; row += state->pinfo.stride;