mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue