diff --git a/configs/sam3u-ek/src/up_lcd.c b/configs/sam3u-ek/src/up_lcd.c index c4f0506b660..a966c72a07e 100755 --- a/configs/sam3u-ek/src/up_lcd.c +++ b/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/graphics/nxglib/lcd/nxglib_fillrectangle.c b/graphics/nxglib/lcd/nxglib_fillrectangle.c index 9bb7606b610..e3668c0ea89 100755 --- a/graphics/nxglib/lcd/nxglib_fillrectangle.c +++ b/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); } }