Skip to content

Commit

Permalink
apps/examples: fix fb example show error
Browse files Browse the repository at this point in the history
For screens with transparency, the alpha value should be set to 0xFF

Signed-off-by: rongyichang <[email protected]>
  • Loading branch information
terry0012 authored and jerpelea committed Aug 9, 2023
1 parent 53cb2a9 commit 6fecb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fb/fb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fecb56

Please sign in to comment.