diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-22 19:09:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-22 19:09:54 +0000 |
commit | 214bee5a9d5cc49d58906e7a982c897369dd4371 (patch) | |
tree | 801b953bdccde518426baa1031708fd63fa76afe /nuttx/graphics | |
parent | a4df531ddd6b2998171d9d80eca58e24207eb4df (diff) | |
download | px4-nuttx-214bee5a9d5cc49d58906e7a982c897369dd4371.tar.gz px4-nuttx-214bee5a9d5cc49d58906e7a982c897369dd4371.tar.bz2 px4-nuttx-214bee5a9d5cc49d58906e7a982c897369dd4371.zip |
Fix a bug in the getrectangle logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4058 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_getrectangle.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_getrectangle.c b/nuttx/graphics/nxbe/nxbe_getrectangle.c index f3f01d192..fa3178eb3 100644 --- a/nuttx/graphics/nxbe/nxbe_getrectangle.c +++ b/nuttx/graphics/nxbe/nxbe_getrectangle.c @@ -70,23 +70,6 @@ struct nxbe_fill_s ****************************************************************************/ /**************************************************************************** - * Name: nxbe_clipfill - * - * Description: - * Called from nxbe_clipper() to performed the fill operation on visible portions - * of the rectangle. - * - ****************************************************************************/ - -static void nxbe_clipfill(FAR struct nxbe_clipops_s *cops, - FAR struct nxbe_plane_s *plane, - FAR const struct nxgl_rect_s *rect) -{ - struct nxbe_fill_s *fillinfo = (struct nxbe_fill_s *)cops; - plane->fillrectangle(&plane->pinfo, rect, fillinfo->color); -} - -/**************************************************************************** * Public Functions ****************************************************************************/ @@ -116,7 +99,6 @@ void nxbe_getrectangle(FAR struct nxbe_window_s *wnd, FAR uint8_t *dest, unsigned int deststride) { struct nxgl_rect_s remaining; - int i; #ifdef CONFIG_DEBUG if (!wnd || !rect || ! rect || plane >= wnd->be->vinfo.nplanes) @@ -144,6 +126,6 @@ void nxbe_getrectangle(FAR struct nxbe_window_s *wnd, * to this window. */ - FAR struct nxbe_plane_s *pplane = &wnd->be->plane[i]; + FAR struct nxbe_plane_s *pplane = &wnd->be->plane[plane]; pplane->getrectangle(&pplane->pinfo, rect, dest, deststride); } |