summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxsu/nxsu_reportposition.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics/nxsu/nxsu_reportposition.c')
-rw-r--r--nuttx/graphics/nxsu/nxsu_reportposition.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/graphics/nxsu/nxsu_reportposition.c b/nuttx/graphics/nxsu/nxsu_reportposition.c
index 9ad8197e6..972986f9d 100644
--- a/nuttx/graphics/nxsu/nxsu_reportposition.c
+++ b/nuttx/graphics/nxsu/nxsu_reportposition.c
@@ -81,7 +81,7 @@
void nxfe_reportposition(FAR struct nxbe_window_s *wnd)
{
FAR struct nxbe_state_s *be = wnd->be;
- struct nxgl_rect_s rect;
+ struct nxgl_size_s size;
#ifdef CONFIG_DEBUG
if (!wnd)
@@ -96,9 +96,9 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd)
if (wnd->cb->position)
{
- /* Convert the frame rectangle to a window-relative rectangle */
+ /* Get the size of the bounding rectangle */
- nxgl_rectoffset(&rect, &wnd->bounds, -wnd->origin.x, -wnd->origin.y);
+ nxgl_rectsize(&size, &wnd->bounds);
/* And provide this to the client */