From 09b6c18505705e403b6d0f9236075d526b3071e5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 26 Nov 2008 18:59:52 +0000 Subject: First rasterizer builds OK git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1313 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxglib/nxglib_bitblit.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'nuttx/graphics/nxglib/nxglib_bitblit.h') diff --git a/nuttx/graphics/nxglib/nxglib_bitblit.h b/nuttx/graphics/nxglib/nxglib_bitblit.h index 6ebb97c2b..b327204bd 100644 --- a/nuttx/graphics/nxglib/nxglib_bitblit.h +++ b/nuttx/graphics/nxglib/nxglib_bitblit.h @@ -122,8 +122,8 @@ # define NXGL_MEMSET(dest,value,width) \ { \ - FAR uybte *_ptr = (FAR ubyte*)dest; \ - int nbytes = NX_SCALEX(width)); \ + FAR ubyte *_ptr = (FAR ubyte*)dest; \ + int nbytes = NX_SCALEX(width); \ while (nbytes--) \ { \ *_ptr++ = value; \ @@ -133,7 +133,7 @@ { \ FAR ubyte *_dptr = (FAR ubyte*)dest; \ FAR ubyte *_sptr = (FAR ubyte*)src; \ - int nbytes = NX_SCALEX(width)); \ + int nbytes = NX_SCALEX(width); \ while (npixels--) \ { \ *_dptr++ = *_sptr++; \ @@ -143,7 +143,7 @@ #elif NXGLIB_BITSPERPIXEL == 24 # define NXGL_MEMSET(dest,value,width) \ { \ - FAR uybte *_ptr = (FAR ubyte*)dest; \ + FAR ubyte *_ptr = (FAR ubyte*)dest; \ while (width--) \ { \ *_ptr++ = value; \ @@ -182,6 +182,11 @@ } #endif +/* Form a function name by concatenating two strings */ + +#define _NXGL_FUNCNAME(a,b) a ## b +#define NXGL_FUNCNAME(a,b) _NXGL_FUNCNAME(a,b) + /**************************************************************************** * Public Types ****************************************************************************/ -- cgit v1.2.3