Skip to content

Commit e4e46c3

Browse files
jianglianfangxiaoxiang781216
authored andcommitted
fb_main: fix draw_rect24
Signed-off-by: jianglianfang <[email protected]>
1 parent 909e479 commit e4e46c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fb/fb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static void draw_rect24(FAR struct fb_state_s *state,
284284
int x;
285285
int y;
286286

287-
row = (FAR uint8_t *)state->fbmem + state->pinfo.stride * area->y;
287+
row = (FAR uint8_t *)state->act_fbmem + state->pinfo.stride * area->y;
288288
for (y = 0; y < area->h; y++)
289289
{
290290
dest = ((FAR uint8_t *)row) + area->x * 3;

0 commit comments

Comments
 (0)