diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-08 03:48:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-08 03:48:15 +0000 |
commit | 27ff8784e794d5385d80e413fb74aa514249abe3 (patch) | |
tree | 0a482c256b183cbceea0c3fc6edb2101348a14c0 /nuttx/graphics/nxglib | |
parent | 20646dac18235038b588788d8336aa4330bb0927 (diff) | |
download | nuttx-27ff8784e794d5385d80e413fb74aa514249abe3.tar.gz nuttx-27ff8784e794d5385d80e413fb74aa514249abe3.tar.bz2 nuttx-27ff8784e794d5385d80e413fb74aa514249abe3.zip |
Eliminate warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2830 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib')
-rw-r--r-- | nuttx/graphics/nxglib/fb/nxglib_moverectangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxglib/fb/nxglib_moverectangle.c b/nuttx/graphics/nxglib/fb/nxglib_moverectangle.c index 4403c6f6d..4b426a10b 100644 --- a/nuttx/graphics/nxglib/fb/nxglib_moverectangle.c +++ b/nuttx/graphics/nxglib/fb/nxglib_moverectangle.c @@ -183,7 +183,7 @@ void NXGL_FUNCNAME(nxgl_moverectangle,NXGLIB_SUFFIX) /* Copy the rectangle from top down. */ sline = pinfo->fbmem + rect->pt1.y * stride + NXGL_SCALEX(rect->pt1.x); - dline = dline - offset->y * stride - NXGL_SCALEX(offset->x); + dline = (FAR uint8_t*)sline - offset->y * stride - NXGL_SCALEX(offset->x); while (rows--) { @@ -206,7 +206,7 @@ void NXGL_FUNCNAME(nxgl_moverectangle,NXGLIB_SUFFIX) /* Copy the rectangle from the bottom up */ sline = pinfo->fbmem + rect->pt2.y * stride + NXGL_SCALEX(rect->pt1.x); - dline = dline - offset->y * stride - NXGL_SCALEX(offset->x); + dline = (FAR uint8_t*)sline - offset->y * stride - NXGL_SCALEX(offset->x); while (rows--) { |