/graphics/nxglib/cursor: Correct two locations where y used where x intended.

This commit is contained in:
Gregory Nutt 2019-04-11 13:25:32 -06:00
parent 39db179e1b
commit ee99e7317a
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

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