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:
parent
53cb2a947d
commit
6fecb56aee
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user