diff options
Diffstat (limited to 'nuttx/graphics/nxsu')
-rw-r--r-- | nuttx/graphics/nxsu/nx_mousein.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxsu/nxsu_redrawreq.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxsu/nxsu_reportposition.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/graphics/nxsu/nx_mousein.c b/nuttx/graphics/nxsu/nx_mousein.c index 2ed59e894..f5ea76476 100644 --- a/nuttx/graphics/nxsu/nx_mousein.c +++ b/nuttx/graphics/nxsu/nx_mousein.c @@ -123,7 +123,7 @@ int nxsu_mousereport(struct nxbe_window_s *wnd) { /* Yes... Convert the mouse position to window relative coordinates */ - nxgl_vectsubtract(&relpos, &g_mpos, &wnd->origin); + nxgl_vectsubtract(&relpos, &g_mpos, &wnd->bounds.pt1); wnd->cb->mousein((NXWINDOW)wnd, &relpos, g_mbutton, wnd->arg); return OK; } diff --git a/nuttx/graphics/nxsu/nxsu_redrawreq.c b/nuttx/graphics/nxsu/nxsu_redrawreq.c index 3226c0c2d..8cd2e8aa2 100644 --- a/nuttx/graphics/nxsu/nxsu_redrawreq.c +++ b/nuttx/graphics/nxsu/nxsu_redrawreq.c @@ -93,7 +93,7 @@ void nxfe_redrawreq(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s { /* Convert the frame rectangle to a window-relative rectangle */ - nxgl_rectoffset(&relrect, rect, -wnd->origin.x, -wnd->origin.y); + nxgl_rectoffset(&relrect, rect, -wnd->bounds.pt1.x, -wnd->bounds.pt1.y); /* And request the redraw */ diff --git a/nuttx/graphics/nxsu/nxsu_reportposition.c b/nuttx/graphics/nxsu/nxsu_reportposition.c index 972986f9d..d8ec61580 100644 --- a/nuttx/graphics/nxsu/nxsu_reportposition.c +++ b/nuttx/graphics/nxsu/nxsu_reportposition.c @@ -102,6 +102,6 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) /* And provide this to the client */ - wnd->cb->position(wnd, &rect, &wnd->origin, &be->bkgd.bounds, wnd->arg); + wnd->cb->position(wnd, &rect, &wnd->bounds.pt1, &be->bkgd.bounds, wnd->arg); } } |