diff options
Diffstat (limited to 'nuttx/graphics/nxglib/nxglib_bitblit.h')
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_bitblit.h | 13 |
1 files changed, 9 insertions, 4 deletions
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 ****************************************************************************/ |