summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTreeCtrl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkTreeCtrl.c b/generic/tkTreeCtrl.c
index 28532b7..6d0f895 100644
--- a/generic/tkTreeCtrl.c
+++ b/generic/tkTreeCtrl.c
@@ -7,7 +7,7 @@
* Copyright (c) 2002-2003 Christian Krone
* Copyright (c) 2003-2005 ActiveState, a division of Sophos
*
- * RCS: @(#) $Id: tkTreeCtrl.c,v 1.55 2005/09/27 04:04:01 hobbs2 Exp $
+ * RCS: @(#) $Id: tkTreeCtrl.c,v 1.56 2005/09/27 04:44:36 hobbs2 Exp $
*/
#include "tkTreeCtrl.h"
@@ -3669,6 +3669,8 @@ LoupeCmd(
int bPerPixel, byPerRow, byPerPixel;
// Gets all the screen info:
+ CGDisplayCapture(kCGDirectMainDisplay);
+ CGDisplayHideCursor(kCGDirectMainDisplay);
bPerPixel = CGDisplayBitsPerPixel(kCGDirectMainDisplay);
byPerRow = CGDisplayBytesPerRow(kCGDirectMainDisplay);
byPerPixel = bPerPixel / 8;
@@ -3717,6 +3719,8 @@ LoupeCmd(
*((unsigned int *)(pixelPtr + stepDest + xx * 4)) = newPixel;
}
}
+ CGDisplayShowCursor(kCGDirectMainDisplay);
+ CGDisplayRelease(kCGDirectMainDisplay);
#else
ximage = XGetImage(display, rootWindow,
grabX, grabY, grabW, grabH, AllPlanes, ZPixmap);