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);