From c69918b69d0997c40ab33f9d2233dd6f520508c7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 26 Nov 2008 19:39:54 +0000 Subject: Add another rasterizer git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1314 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxglib/nxglib_fillrectangle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/graphics/nxglib/nxglib_fillrectangle.c') 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 */ -- cgit v1.2.3