diff options
Diffstat (limited to 'nuttx/graphics/nxbe/nxbe_bitmap.c')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_bitmap.c b/nuttx/graphics/nxbe/nxbe_bitmap.c index dbaa1c6b1..293033dc2 100644 --- a/nuttx/graphics/nxbe/nxbe_bitmap.c +++ b/nuttx/graphics/nxbe/nxbe_bitmap.c @@ -137,8 +137,8 @@ void nxbe_bitmap(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s *de /* Offset the rectangle and image origin by the window origin */ - nxgl_rectoffset(&bounds, dest, wnd->origin.x, wnd->origin.y); - nxgl_vectoradd(&offset, origin, &wnd->origin); + nxgl_rectoffset(&bounds, dest, wnd->bounds.pt1.x, wnd->bounds.pt1.y); + nxgl_vectoradd(&offset, origin, &wnd->bounds.pt1); /* Verify that the destination rectangle begins "below" and to the "right" * of the origin |