diff options
Diffstat (limited to 'nuttx/graphics/nxbe/nxbe_filltrapezoid.c')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_filltrapezoid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_filltrapezoid.c b/nuttx/graphics/nxbe/nxbe_filltrapezoid.c index d314fec30..f465abbdd 100644 --- a/nuttx/graphics/nxbe/nxbe_filltrapezoid.c +++ b/nuttx/graphics/nxbe/nxbe_filltrapezoid.c @@ -130,7 +130,7 @@ void nxbe_filltrapezoid(FAR struct nxbe_window_s *wnd, * the framebuffer region */ - nxgl_trapoffset(&info.trap, trap, wnd->origin.x, wnd->origin.y); + nxgl_trapoffset(&info.trap, trap, wnd->bounds.pt1.x, wnd->bounds.pt1.y); /* Create a bounding box that contains the trapezoid */ @@ -144,7 +144,7 @@ void nxbe_filltrapezoid(FAR struct nxbe_window_s *wnd, if (clip && !nxgl_nullrect(clip)) { struct nxgl_rect_s tmp; - nxgl_rectoffset(&tmp, clip, wnd->origin.x, wnd->origin.y); + nxgl_rectoffset(&tmp, clip, wnd->bounds.pt1.x, wnd->bounds.pt1.y); nxgl_rectintersect(&remaining, &remaining, &tmp); } |