From c2be49b91526d041d522ab938593e660cd8aec4e Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 24 Jan 2019 12:52:28 -0500 Subject: enable screen capture --- tk8.6/macosx/tkMacOSXDraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v0.12