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/nxbe/nxbe_bitmap.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/nxbe/nxbe_bitmap.c')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_bitmap.c b/nuttx/graphics/nxbe/nxbe_bitmap.c index dbaa1c6b1..293033dc2 100644 --- a/nuttx/graphics/nxbe/nxbe_bitmap.c +++ b/nuttx/graphics/nxbe/nxbe_bitmap.c @@ -137,8 +137,8 @@ void nxbe_bitmap(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s *de /* Offset the rectangle and image origin by the window origin */ - nxgl_rectoffset(&bounds, dest, wnd->origin.x, wnd->origin.y); - nxgl_vectoradd(&offset, origin, &wnd->origin); + nxgl_rectoffset(&bounds, dest, wnd->bounds.pt1.x, wnd->bounds.pt1.y); + nxgl_vectoradd(&offset, origin, &wnd->bounds.pt1); /* Verify that the destination rectangle begins "below" and to the "right" * of the origin |