From 214bee5a9d5cc49d58906e7a982c897369dd4371 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 22 Oct 2011 19:09:54 +0000 Subject: 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 --- nuttx/graphics/nxbe/nxbe_getrectangle.c | 20 +------------------- 1 file changed, 1 insertion(+), 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 @@ -69,23 +69,6 @@ struct nxbe_fill_s * Private Functions ****************************************************************************/ -/**************************************************************************** - * 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); } -- cgit v1.2.3