diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 19:39:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 19:39:54 +0000 |
commit | c69918b69d0997c40ab33f9d2233dd6f520508c7 (patch) | |
tree | 5654f6d0fc45599bfea74761d932c78c2b0b8bbe /nuttx/graphics/nxglib/nxglib_fillrectangle.c | |
parent | 09b6c18505705e403b6d0f9236075d526b3071e5 (diff) | |
download | px4-nuttx-c69918b69d0997c40ab33f9d2233dd6f520508c7.tar.gz px4-nuttx-c69918b69d0997c40ab33f9d2233dd6f520508c7.tar.bz2 px4-nuttx-c69918b69d0997c40ab33f9d2233dd6f520508c7.zip |
Add another rasterizer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1314 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib/nxglib_fillrectangle.c')
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_fillrectangle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_fillrectangle.c b/nuttx/graphics/nxglib/nxglib_fillrectangle.c index 3da969c4a..727c57580 100644 --- a/nuttx/graphics/nxglib/nxglib_fillrectangle.c +++ b/nuttx/graphics/nxglib/nxglib_fillrectangle.c @@ -74,7 +74,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: nxgl_fillrectangle* + * Name: nxgl_fillrectangle_*bpp * * Descripton: * Fill a rectangle region in the framebuffer memory with a fixed color @@ -82,7 +82,7 @@ ****************************************************************************/ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX) -(FAR struct fb_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *rect, NX_PIXEL_T color) +(FAR struct fb_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *rect, NXGL_PIXEL_T color) { ubyte *line; unsigned int width; @@ -100,7 +100,7 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX) /* Get the address of the first byte in the first line to write */ - line = pinfo->fbmem + rect->pt1.y * stride + NX_SCALEX(rect->pt1.x); + line = pinfo->fbmem + rect->pt1.y * stride + NXGL_SCALEX(rect->pt1.x); /* Then fill the rectangle line-by-line */ |