changeset 6576:babda162124b

RT-36387 [IMX, Lens] Black rectangle seen instead of cursor on first run after reboot. Reviewed by dblaukopf, tested with HelloRectangle.
author Lisa.Selle@oracle.com
date Mon, 31 Mar 2014 16:57:36 -0400
parents d7e80f499365
children 5133557fa908
files modules/graphics/src/main/native-glass/lens/lensport/imx6Cursor.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;