diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 23:42:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 23:42:51 +0000 |
commit | 7060857f2a90945f13294ea055309520cd93cd45 (patch) | |
tree | 0b8786948ff113e78a70d9f092ed02d73379ca14 /nuttx/graphics/nxglib | |
parent | 555e551c46f5c9dbd74f92239c0078a6feb65568 (diff) | |
download | px4-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')
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_copyrectangle.c | 8 | ||||
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_fillrectangle.c | 4 | ||||
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_filltrapezoid.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_copyrectangle.c b/nuttx/graphics/nxglib/nxglib_copyrectangle.c index 0dd01853c..03068b89e 100644 --- a/nuttx/graphics/nxglib/nxglib_copyrectangle.c +++ b/nuttx/graphics/nxglib/nxglib_copyrectangle.c @@ -70,7 +70,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: nxs_copyrectangle_*bpp + * Name: nxgl_copyrectangle_*bpp * * Descripton: * Copy a rectangular bitmap image into the specific position in the @@ -78,9 +78,9 @@ * ****************************************************************************/ -void NXGL_FUNCNAME(nxs_copyrectangle,NXGLIB_SUFFIX) +void NXGL_FUNCNAME(nxgl_copyrectangle,NXGLIB_SUFFIX) (FAR struct fb_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *dest, - FAR const NXGL_PIXEL_T *src, FAR const struct nxgl_point_s *origin, + FAR const void *src, FAR const struct nxgl_point_s *origin, unsigned int srcstride) { const ubyte *sptr; @@ -105,7 +105,7 @@ void NXGL_FUNCNAME(nxs_copyrectangle,NXGLIB_SUFFIX) while (rows--) { - NXGL_MEMCPY(dest, sptr, width); + NXGL_MEMCPY((NXGL_PIXEL_T*)dest, (NXGL_PIXEL_T*)sptr, width); dptr += deststride; sptr += srcstride; } 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; } } diff --git a/nuttx/graphics/nxglib/nxglib_filltrapezoid.c b/nuttx/graphics/nxglib/nxglib_filltrapezoid.c index f1f13a00f..2343a4680 100644 --- a/nuttx/graphics/nxglib/nxglib_filltrapezoid.c +++ b/nuttx/graphics/nxglib/nxglib_filltrapezoid.c @@ -86,7 +86,7 @@ void NXGL_FUNCNAME(nxglib_filltrapezoid,NXGLIB_SUFFIX) (FAR struct fb_videoinfo_s *vinfo, FAR struct fb_planeinfo_s *pinfo, - FAR const struct nxgl_trapezoid_s *trap, NXGL_PIXEL_T color) + FAR const struct nxgl_trapezoid_s *trap, nxgl_mxpixel_t color) { unsigned int stride; ubyte *line; @@ -152,7 +152,7 @@ void NXGL_FUNCNAME(nxglib_filltrapezoid,NXGLIB_SUFFIX) /* Then draw the run from (line + clipx1) to (line + clipx2) */ - NXGL_MEMSET(line + NXGL_SCALEX(ix1), color, ix2 - ix1 + 1); + NXGL_MEMSET(line + NXGL_SCALEX(ix1), (NXGL_PIXEL_T)color, ix2 - ix1 + 1); } /* Move to the start of the next line */ |