# HG changeset patch # User Lisa.Selle@oracle.com # Date 1396299456 14400 # Node ID babda162124b5621974db0a0f8a4a8c37550ef0e # Parent d7e80f499365af8cca1ec29443fc9adb5aad598f RT-36387 [IMX, Lens] Black rectangle seen instead of cursor on first run after reboot. Reviewed by dblaukopf, tested with HelloRectangle. diff -r d7e80f499365 -r babda162124b modules/graphics/src/main/native-glass/lens/lensport/imx6Cursor.c --- a/modules/graphics/src/main/native-glass/lens/lensport/imx6Cursor.c Fri Mar 28 17:00:45 2014 -0700 +++ b/modules/graphics/src/main/native-glass/lens/lensport/imx6Cursor.c Mon Mar 31 16:57:36 2014 -0400 @@ -333,6 +333,8 @@ if (ioctl(cursor.fd, MXCFB_SET_OVERLAY_POS, &cpos)) { GLASS_LOG_SEVERE("Error %s in setting overlay position", strerror(errno)); } + + fbImx6BlankCursor(); } @@ -450,7 +452,9 @@ void fbImx6CursorClose() { if (cursor.fd >= 0) { - fbImx6BlankCursor(); + if (cursor.isVisible) { + fbImx6BlankCursor(); + } close(cursor.fd); cursor.fd = -1; cursor.isVisible = 0;