sekimura (owner)

Revisions

gist: 68351 Download_button fork
public
Public Clone URL: git://gist.github.com/68351.git
Diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- 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;
  }