/graphics/nxglib/cursor: Correct two locations where y used where x intended.
This commit is contained in:
parent
39db179e1b
commit
ee99e7317a
@ -122,7 +122,7 @@ void NXGL_FUNCNAME(nxglib_cursor_backup, NXGLIB_SUFFIX)
|
|||||||
sline = (FAR uint8_t *)fbmem + sstride * be->cursor.bounds.pt1.y +
|
sline = (FAR uint8_t *)fbmem + sstride * be->cursor.bounds.pt1.y +
|
||||||
NXGL_SCALEX(be->cursor.bounds.pt1.x);
|
NXGL_SCALEX(be->cursor.bounds.pt1.x);
|
||||||
dline = (FAR uint8_t *)be->cursor.bkgd + dstride * origin.y +
|
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 */
|
/* Save the cursor background by copying the device graphics memory */
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ void NXGL_FUNCNAME(nxglib_cursor_erase, NXGLIB_SUFFIX)
|
|||||||
|
|
||||||
fbmem = (FAR uint8_t *)plane->pinfo.fbmem;
|
fbmem = (FAR uint8_t *)plane->pinfo.fbmem;
|
||||||
sline = (FAR uint8_t *)be->cursor.bkgd + sstride * origin.y +
|
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 +
|
dline = (FAR uint8_t *)fbmem + dstride * be->cursor.bounds.pt1.y +
|
||||||
NXGL_SCALEX(be->cursor.bounds.pt1.x);
|
NXGL_SCALEX(be->cursor.bounds.pt1.x);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user