diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-23 22:07:13 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-23 22:07:13 +0000 |
commit | 9c90861d9c85b7ba730ecfe6fcea329ca22f3ee4 (patch) | |
tree | 0f89e5c004d1433ded321a51b2ff3c66a855f2f2 /nuttx/graphics | |
parent | e479c3fd01478ce47eb5a067796e925db9c1a4e4 (diff) | |
download | px4-nuttx-9c90861d9c85b7ba730ecfe6fcea329ca22f3ee4.tar.gz px4-nuttx-9c90861d9c85b7ba730ecfe6fcea329ca22f3ee4.tar.bz2 px4-nuttx-9c90861d9c85b7ba730ecfe6fcea329ca22f3ee4.zip |
Oops.. back out most of the last change
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4060 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics')
-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 1c23445b1..dcbdb2ae9 100644 --- a/nuttx/graphics/nxbe/nxbe_bitmap.c +++ b/nuttx/graphics/nxbe/nxbe_bitmap.c @@ -151,10 +151,10 @@ void nxbe_bitmap(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s *de } /* Verify that the width of the destination rectangle does not exceed the - * width of the source bitmap data + * width of the source bitmap data (taking into account the bitmap origin) */ - deststride = (((bounds.pt2.x - bounds.pt1.x + 1) * wnd->be->plane[0].pinfo.bpp + 7) >> 3); + deststride = (((bounds.pt2.x - origin->x + 1) * wnd->be->plane[0].pinfo.bpp + 7) >> 3); if (deststride > stride) { gdbg("Bad dest width\n"); |