diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-21 03:24:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-21 03:24:36 +0000 |
commit | 5d0a7ab74700133aca41b7baaa4fe53da92dbf6a (patch) | |
tree | ab5b0c4ecb3f182a0b8a5424e810d84c3e58546b | |
parent | be7fb2968dd37fd2b8c635158c275aa387f5ca60 (diff) | |
download | nuttx-5d0a7ab74700133aca41b7baaa4fe53da92dbf6a.tar.gz nuttx-5d0a7ab74700133aca41b7baaa4fe53da92dbf6a.tar.bz2 nuttx-5d0a7ab74700133aca41b7baaa4fe53da92dbf6a.zip |
Fix a couple more LCD bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2622 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-x | nuttx/configs/sam3u-ek/src/up_lcd.c | 6 | ||||
-rwxr-xr-x | nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/configs/sam3u-ek/src/up_lcd.c b/nuttx/configs/sam3u-ek/src/up_lcd.c index c4f0506b6..a966c72a0 100755 --- a/nuttx/configs/sam3u-ek/src/up_lcd.c +++ b/nuttx/configs/sam3u-ek/src/up_lcd.c @@ -167,10 +167,10 @@ /* Graphics Capbilities ***************************************************************/ -/* LCD resolution */ +/* LCD resolution: 240 (row) x 320 (columns) */ -#define SAM3UEK_XRES 320 -#define SAM3UEK_YRES 240 +#define SAM3UEK_XRES 240 +#define SAM3UEK_YRES 320 /* Color depth and format. BPP=16 R=6, G=6, B=5: RRRR RBBB BBBG GGGG */ diff --git a/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c b/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c index 9bb7606b6..e3668c0ea 100755 --- a/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c +++ b/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c @@ -106,6 +106,6 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX) { /* Draw the raster line at this row */ - (void)pinfo->putrun(row, rect->pt2.x, pinfo->buffer, ncols); + (void)pinfo->putrun(row, rect->pt1.x, pinfo->buffer, ncols); } } |