diff options
author | dgp <dgp@users.sourceforge.net> | 2014-08-13 11:39:50 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-08-13 11:39:50 (GMT) |
commit | 2d22dd5c2be401b2a9336d8e9d5e46a2c71b15f3 (patch) | |
tree | 0747b9ad6cf467b8e80a7d4266d714e363fdbdb8 /macosx/tkMacOSXSubwindows.c | |
parent | 2379def90ccf62cffcb5419ab4feb419f4fc3938 (diff) | |
parent | acb6f7b259137644e34ba799e20432a0ced9be0a (diff) | |
download | tk-2d22dd5c2be401b2a9336d8e9d5e46a2c71b15f3.zip tk-2d22dd5c2be401b2a9336d8e9d5e46a2c71b15f3.tar.gz tk-2d22dd5c2be401b2a9336d8e9d5e46a2c71b15f3.tar.bz2 |
merge 8.5
Diffstat (limited to 'macosx/tkMacOSXSubwindows.c')
-rw-r--r-- | macosx/tkMacOSXSubwindows.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c index a08c56e..d557db3 100644 --- a/macosx/tkMacOSXSubwindows.c +++ b/macosx/tkMacOSXSubwindows.c @@ -651,7 +651,7 @@ XConfigureWindow( * * TkMacOSXUpdateClipRgn -- * - * This function updates the cliping regions for a given window and all of + * This function updates the clipping regions for a given window and all of * its children. Once updated the TK_CLIP_INVALID flag in the subwindow * data structure is unset. The TK_CLIP_INVALID flag should always be * unset before any drawing is attempted. @@ -817,7 +817,7 @@ TkMacOSXUpdateClipRgn( * * TkMacOSXVisableClipRgn -- * - * This function returns the Macintosh cliping region for the given + * This function returns the Macintosh clipping region for the given * window. The caller is responsible for disposing of the returned * region via TkDestroyRegion(). * @@ -912,7 +912,7 @@ TkMacOSXInvalidateWindow( * TK_PARENT_WINDOW */ { #ifdef TK_MAC_DEBUG_CLIP_REGIONS - TkMacOSXDbgMsg("%s", winPtr->pathName); + TkMacOSXDbgMsg("%s", macWin->winPtr->pathName); #endif if (macWin->flags & TK_CLIP_INVALID) { TkMacOSXUpdateClipRgn(macWin->winPtr); @@ -1070,7 +1070,7 @@ TkMacOSXGetRootControl( * None. * * Side effects: - * The cliping regions for the window and its children are mark invalid. + * The clipping regions for the window and its children are marked invalid. * (Make sure they are valid before drawing.) * *---------------------------------------------------------------------- @@ -1089,6 +1089,10 @@ TkMacOSXInvalClipRgns( * be marked. */ +#ifdef TK_MAC_DEBUG_CLIP_REGIONS + TkMacOSXDbgMsg("%s", winPtr->pathName); +#endif + if (!macWin || macWin->flags & TK_CLIP_INVALID) { return; } |