diff options
author | kevin_walzer <kevin_walzer@noemail.net> | 2015-04-07 01:12:45 (GMT) |
---|---|---|
committer | kevin_walzer <kevin_walzer@noemail.net> | 2015-04-07 01:12:45 (GMT) |
commit | 96a527934a68cde817b8fbe71b0da7e0e770ecf6 (patch) | |
tree | 95547ff6225666daa34552c1afc7ff7d112cc5a5 /generic/tkCanvas.c | |
parent | 74d8c247e0e39ce2a151236ed4c245575e0aaf0e (diff) | |
download | tk-96a527934a68cde817b8fbe71b0da7e0e770ecf6.zip tk-96a527934a68cde817b8fbe71b0da7e0e770ecf6.tar.gz tk-96a527934a68cde817b8fbe71b0da7e0e770ecf6.tar.bz2 |
Further cleanup of scrolling, drawing, resize in Cocoa; thanks to Marc Culler for patches
FossilOrigin-Name: 15a7b752d6a8277d6bdba5add94ead89b38ea04f
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 8e14852..9c4d60a 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -2447,6 +2447,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). |