diff options
Diffstat (limited to 'nuttx/graphics/nxmu')
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_mouse.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_redrawreq.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_reportposition.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_mouse.c b/nuttx/graphics/nxmu/nxmu_mouse.c index 80ab60cb7..0bcb09a34 100644 --- a/nuttx/graphics/nxmu/nxmu_mouse.c +++ b/nuttx/graphics/nxmu/nxmu_mouse.c @@ -128,7 +128,7 @@ int nxmu_mousereport(struct nxbe_window_s *wnd) outmsg.msgid = NX_CLIMSG_MOUSEIN; outmsg.wnd = wnd; outmsg.buttons = g_mbutton; - nxgl_vectsubtract(&outmsg.pos, &g_mpos, &wnd->origin); + nxgl_vectsubtract(&outmsg.pos, &g_mpos, &wnd->bounds.pt1); ret = mq_send(wnd->conn->swrmq, &outmsg, sizeof(struct nxclimsg_mousein_s), NX_SVRMSG_PRIO); diff --git a/nuttx/graphics/nxmu/nxmu_redrawreq.c b/nuttx/graphics/nxmu/nxmu_redrawreq.c index 7151301d2..3f25e1ebf 100644 --- a/nuttx/graphics/nxmu/nxmu_redrawreq.c +++ b/nuttx/graphics/nxmu/nxmu_redrawreq.c @@ -86,7 +86,7 @@ void nxfe_redrawreq(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s outmsg.msgid = NX_CLIMSG_REDRAW; outmsg.wnd = wnd; outmsg.more = FALSE; - nxgl_rectoffset(&outmsg.rect, rect, -wnd->origin.x, -wnd->origin.y); + nxgl_rectoffset(&outmsg.rect, rect, -wnd->bounds.pt1.x, -wnd->bounds.pt1.y); ret = mq_send(wnd->conn->swrmq, &outmsg, sizeof(struct nxclimsg_redraw_s), NX_CLIMSG_PRIO); if (ret < 0) diff --git a/nuttx/graphics/nxmu/nxmu_reportposition.c b/nuttx/graphics/nxmu/nxmu_reportposition.c index 7f8ebb3b7..858f3ab82 100644 --- a/nuttx/graphics/nxmu/nxmu_reportposition.c +++ b/nuttx/graphics/nxmu/nxmu_reportposition.c @@ -88,8 +88,8 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) outmsg.msgid = NX_CLIMSG_NEWPOSITION; outmsg.wnd = wnd; - outmsg.pos.x = wnd->origin.x; - outmsg.pos.y = wnd->origin.y; + outmsg.pos.x = wnd->bounds.pt1.x; + outmsg.pos.y = wnd->bounds.pt1.y; nxgl_rectsize(&outmsg.size, &wnd->bounds); |