summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxglib/nxglib_bitblit.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 18:59:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 18:59:52 +0000
commit09b6c18505705e403b6d0f9236075d526b3071e5 (patch)
tree657960a7d9407f88d2d0435fd15c1d5fd33f79cb /nuttx/graphics/nxglib/nxglib_bitblit.h
parent5bd8df9d37f1ed4e504ff6b43545ba8300cd2de1 (diff)
downloadpx4-nuttx-09b6c18505705e403b6d0f9236075d526b3071e5.tar.gz
px4-nuttx-09b6c18505705e403b6d0f9236075d526b3071e5.tar.bz2
px4-nuttx-09b6c18505705e403b6d0f9236075d526b3071e5.zip
First rasterizer builds OK
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1313 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib/nxglib_bitblit.h')
-rw-r--r--nuttx/graphics/nxglib/nxglib_bitblit.h13
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
****************************************************************************/