Fix bad pixel type

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1337 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-11-28 18:26:22 +00:00
parent faac7eaf55
commit eb0772e504
1 changed files with 5 additions and 5 deletions

View File

@ -167,8 +167,8 @@
#else #else
# define NXGL_MEMSET(dest,value,width) \ # define NXGL_MEMSET(dest,value,width) \
{ \ { \
FAR nx_pixel_t *_ptr = (FAR ubyte*)dest; \ FAR NXGL_PIXEL_T *_ptr = (FAR NXGL_PIXEL_T*)dest; \
nxgl_coord_t _npix = width; \ nxgl_coord_t _npix = width; \
while (_npix--) \ while (_npix--) \
{ \ { \
*_ptr++ = value; \ *_ptr++ = value; \
@ -176,9 +176,9 @@
} }
# define NXGL_MEMCPY(dest,src,width) \ # define NXGL_MEMCPY(dest,src,width) \
{ \ { \
FAR nx_pixel_t *_dptr = (FAR ubyte*)dest; \ FAR NXGL_PIXEL_T *_dptr = (FAR NXGL_PIXEL_T*)dest; \
FAR nx_pixel_t *_sptr = (FAR ubyte*)src; \ FAR NXGL_PIXEL_T *_sptr = (FAR NXGL_PIXEL_T*)src; \
nxgl_coord_t _npix = width; \ nxgl_coord_t _npix = width; \
while (_npix--) \ while (_npix--) \
{ \ { \
*_dptr++ = *_sptr++; \ *_dptr++ = *_sptr++; \