You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/28 02:51:40 UTC
(nuttx-apps) branch master updated: fb_main: fix draw_rect24
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new e4e46c3f5 fb_main: fix draw_rect24
e4e46c3f5 is described below
commit e4e46c3f5373f1809828100ee717771895cee726
Author: jianglianfang <ji...@xiaomi.com>
AuthorDate: Fri Sep 6 10:18:02 2024 +0800
fb_main: fix draw_rect24
Signed-off-by: jianglianfang <ji...@xiaomi.com>
---
examples/fb/fb_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c
index 2d3f998dc..835e70733 100644
--- a/examples/fb/fb_main.c
+++ b/examples/fb/fb_main.c
@@ -284,7 +284,7 @@ static void draw_rect24(FAR struct fb_state_s *state,
int x;
int y;
- row = (FAR uint8_t *)state->fbmem + state->pinfo.stride * area->y;
+ row = (FAR uint8_t *)state->act_fbmem + state->pinfo.stride * area->y;
for (y = 0; y < area->h; y++)
{
dest = ((FAR uint8_t *)row) + area->x * 3;