summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxglib/nxglib_fillrectangle.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 23:42:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 23:42:51 +0000
commit7060857f2a90945f13294ea055309520cd93cd45 (patch)
tree0b8786948ff113e78a70d9f092ed02d73379ca14 /nuttx/graphics/nxglib/nxglib_fillrectangle.c
parent555e551c46f5c9dbd74f92239c0078a6feb65568 (diff)
downloadpx4-nuttx-7060857f2a90945f13294ea055309520cd93cd45.tar.gz
px4-nuttx-7060857f2a90945f13294ea055309520cd93cd45.tar.bz2
px4-nuttx-7060857f2a90945f13294ea055309520cd93cd45.zip
Make prototypes of rasterizers same at all resolutions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1317 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib/nxglib_fillrectangle.c')
-rw-r--r--nuttx/graphics/nxglib/nxglib_fillrectangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_fillrectangle.c b/nuttx/graphics/nxglib/nxglib_fillrectangle.c
index 727c57580..b5ed8d581 100644
--- a/nuttx/graphics/nxglib/nxglib_fillrectangle.c
+++ b/nuttx/graphics/nxglib/nxglib_fillrectangle.c
@@ -82,7 +82,7 @@
****************************************************************************/
void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX)
-(FAR struct fb_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *rect, NXGL_PIXEL_T color)
+(FAR struct fb_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *rect, nxgl_mxpixel_t color)
{
ubyte *line;
unsigned int width;
@@ -106,7 +106,7 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX)
while (rows--)
{
- NXGL_MEMSET(line, color, width);
+ NXGL_MEMSET(line, (NXGL_PIXEL_T)color, width);
line += stride;
}
}