diff options
Diffstat (limited to 'nuttx/graphics/nxsu/nx_mousein.c')
-rw-r--r-- | nuttx/graphics/nxsu/nx_mousein.c | 2 |
1 files changed, 1 insertions, 1 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; } |