diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-04-07 01:12:53 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-04-07 01:12:53 (GMT) |
commit | 18ab1d9d87a8a527609d199410a02c95224d223f (patch) | |
tree | 0f23cbba12e185067dc29f500b7289ade06f7414 /generic/tkCanvas.c | |
parent | 2625fbf0c006804a2253bd39743cae5560451d31 (diff) | |
download | tk-18ab1d9d87a8a527609d199410a02c95224d223f.zip tk-18ab1d9d87a8a527609d199410a02c95224d223f.tar.gz tk-18ab1d9d87a8a527609d199410a02c95224d223f.tar.bz2 |
Further cleanup of scrolling, drawing, resize in Cocoa; thanks to Marc Culler for patches
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 14fe1ab..8ebe9ba 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -2101,6 +2101,19 @@ DisplayCanvas( goto done; } +#ifdef MAC_OSX_TK + /* + * If drawing is disabled, all we need to do is + * clear the REDRAW_PENDING flag. + */ + TkWindow *winPtr = (TkWindow *)(canvasPtr->tkwin); + MacDrawable *macWin = winPtr->privatePtr; + if (macWin && (macWin->flags & TK_DO_NOT_DRAW)){ + canvasPtr->flags &= ~REDRAW_PENDING; + return; + } +#endif + /* * Choose a new current item if that is needed (this could cause event * handlers to be invoked). |