summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorculler <culler>2020-06-05 18:00:00 (GMT)
committerculler <culler>2020-06-05 18:00:00 (GMT)
commitf31664f2a7c475db0fcb646accf6f58d78407da8 (patch)
tree57e359e01b5f277c4e8e48737ad4b9608d8f445f /macosx/tkMacOSXDraw.c
parent876fc6d65e63ae72fe52d8435ef703efa50fe814 (diff)
downloadtk-f31664f2a7c475db0fcb646accf6f58d78407da8.zip
tk-f31664f2a7c475db0fcb646accf6f58d78407da8.tar.gz
tk-f31664f2a7c475db0fcb646accf6f58d78407da8.tar.bz2
Fixed a bug in TkpDrawAllViews and added a mechanism to prevent Tcl_WaitForEvent from blocking if there is drawing that needs to be done.
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 6a63449..f3d6ba4 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -176,7 +176,7 @@ TkMacOSXBitmapRepFromDrawableRect(
}
} else if (TkMacOSXDrawableView(mac_drawable) != NULL) {
TKContentView *tkview = (TKContentView *)view;
-
+
/*
* Convert Tk top-left to NSView bottom-left coordinates.
*/
@@ -199,8 +199,7 @@ TkMacOSXBitmapRepFromDrawableRect(
[view cacheDisplayInRect:view_rect toBitmapImageRep:bitmap_rep];
} else {
TkMacOSXDbgMsg("No CGContext - cannot copy from screen to bitmap.");
- [tkview setTkNeedsDisplay:YES];
- [tkview setTkDirtyRect:[tkview bounds]];
+ [tkview addTkDirtyRect:[tkview bounds]];
return NULL;
}
} else {