From ee99e7317aa9d5008ee39e6c4ca29fb2403b0edf Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 11 Apr 2019 13:25:32 -0600 Subject: [PATCH] /graphics/nxglib/cursor: Correct two locations where y used where x intended. --- graphics/nxglib/cursor/nxglib_cursor_backup.c | 2 +- graphics/nxglib/cursor/nxglib_cursor_erase.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/nxglib/cursor/nxglib_cursor_backup.c b/graphics/nxglib/cursor/nxglib_cursor_backup.c index f6ca145765..15932f97bb 100644 --- a/graphics/nxglib/cursor/nxglib_cursor_backup.c +++ b/graphics/nxglib/cursor/nxglib_cursor_backup.c @@ -122,7 +122,7 @@ void NXGL_FUNCNAME(nxglib_cursor_backup, NXGLIB_SUFFIX) sline = (FAR uint8_t *)fbmem + sstride * be->cursor.bounds.pt1.y + NXGL_SCALEX(be->cursor.bounds.pt1.x); dline = (FAR uint8_t *)be->cursor.bkgd + dstride * origin.y + - NXGL_SCALEX(origin.y); + NXGL_SCALEX(origin.x); /* Save the cursor background by copying the device graphics memory */ diff --git a/graphics/nxglib/cursor/nxglib_cursor_erase.c b/graphics/nxglib/cursor/nxglib_cursor_erase.c index a452361bd8..19c968b8a9 100644 --- a/graphics/nxglib/cursor/nxglib_cursor_erase.c +++ b/graphics/nxglib/cursor/nxglib_cursor_erase.c @@ -119,7 +119,7 @@ void NXGL_FUNCNAME(nxglib_cursor_erase, NXGLIB_SUFFIX) fbmem = (FAR uint8_t *)plane->pinfo.fbmem; sline = (FAR uint8_t *)be->cursor.bkgd + sstride * origin.y + - NXGL_SCALEX(origin.y); + NXGL_SCALEX(origin.x); dline = (FAR uint8_t *)fbmem + dstride * be->cursor.bounds.pt1.y + NXGL_SCALEX(be->cursor.bounds.pt1.x);