summaryrefslogtreecommitdiffstats
path: root/tk8.6/macosx
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-01-24 17:52:28 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-01-24 17:52:28 (GMT)
commitc2be49b91526d041d522ab938593e660cd8aec4e (patch)
treeae456ff6afc1b185f6f62ea5975d504e3525a758 /tk8.6/macosx
parent85f35563f421bec185616b13375e67d4f5403af3 (diff)
downloadblt-c2be49b91526d041d522ab938593e660cd8aec4e.zip
blt-c2be49b91526d041d522ab938593e660cd8aec4e.tar.gz
blt-c2be49b91526d041d522ab938593e660cd8aec4e.tar.bz2
enable screen capture
Diffstat (limited to 'tk8.6/macosx')
-rw-r--r--tk8.6/macosx/tkMacOSXDraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tk8.6/macosx/tkMacOSXDraw.c b/tk8.6/macosx/tkMacOSXDraw.c
index 984e2e5..3c2c802 100644
--- a/tk8.6/macosx/tkMacOSXDraw.c
+++ b/tk8.6/macosx/tkMacOSXDraw.c
@@ -192,7 +192,7 @@ TkMacOSXBitmapRepFromDrawableRect(
* display and return NULL.
*/
- if (view == [NSView focusView]) {
+ if (view == [NSView focusView] || 1) {
bitmap_rep = [view bitmapImageRepForCachingDisplayInRect: view_rect];
[bitmap_rep retain];
[view cacheDisplayInRect:view_rect toBitmapImageRep:bitmap_rep];