diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-02 20:57:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-02 20:57:45 +0000 |
commit | f39c1b667ec6b707bb925ef4c5b553c6c08c1ebf (patch) | |
tree | 7cd39be21910ee92fb9f72dfdea587796405a6b8 /nuttx/graphics/nxmu/nxmu_mouse.c | |
parent | aebaefc303f12beb92c4da219411bdb00aa4e03c (diff) | |
download | px4-nuttx-f39c1b667ec6b707bb925ef4c5b553c6c08c1ebf.tar.gz px4-nuttx-f39c1b667ec6b707bb925ef4c5b553c6c08c1ebf.tar.bz2 px4-nuttx-f39c1b667ec6b707bb925ef4c5b553c6c08c1ebf.zip |
Remove redundant origin value
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1393 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_mouse.c')
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_mouse.c | 2 |
1 files changed, 1 insertions, 1 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); |