Skip to content

Instantly share code, notes, and snippets.

@sekimura
Created February 22, 2009 05:37
Show Gist options
  • Save sekimura/68351 to your computer and use it in GitHub Desktop.
Save sekimura/68351 to your computer and use it in GitHub Desktop.
--- lib/platform/COSXScreen.cpp.orig 2006-03-21 21:40:27.000000000 -0800
+++ lib/platform/COSXScreen.cpp 2009-02-22 16:52:45.000000000 -0800
@@ -560,7 +560,9 @@
// hide cursor
if (!m_cursorHidden) {
-// CGDisplayHideCursor(m_displayID);
+ CGDisplayCaptureWithOptions(m_displayID, kCGCaptureNoFill);
+ CGDisplayHideCursor(m_displayID);
+ CGDisplayRelease(m_displayID);
m_cursorHidden = true;
}
@@ -580,7 +582,7 @@
else {
// show cursor
if (m_cursorHidden) {
-// CGDisplayShowCursor(m_displayID);
+ CGDisplayShowCursor(m_displayID);
m_cursorHidden = false;
}
@@ -619,7 +621,7 @@
else {
// show cursor
if (m_cursorHidden) {
-// CGDisplayShowCursor(m_displayID);
+ CGDisplayShowCursor(m_displayID);
m_cursorHidden = false;
}
@@ -669,7 +671,9 @@
else {
// hide cursor
if (!m_cursorHidden) {
-// CGDisplayHideCursor(m_displayID);
+ CGDisplayCaptureWithOptions(m_displayID, kCGCaptureNoFill);
+ CGDisplayHideCursor(m_displayID);
+ CGDisplayRelease(m_displayID);
m_cursorHidden = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment