diff options
author | das <das> | 2007-05-31 13:42:11 (GMT) |
---|---|---|
committer | das <das> | 2007-05-31 13:42:11 (GMT) |
commit | b2961e1a86c13f6505e843476369d46550b31eab (patch) | |
tree | 8f1cac3f58c6abcf28008a0d482ae193fb90b43d /macosx/tkMacOSXDraw.c | |
parent | eb5bb113c80470c68abe015d2b9c755f3127e38b (diff) | |
download | tk-b2961e1a86c13f6505e843476369d46550b31eab.zip tk-b2961e1a86c13f6505e843476369d46550b31eab.tar.gz tk-b2961e1a86c13f6505e843476369d46550b31eab.tar.bz2 |
* macosx/tkMacOSXWindowEvent.c (GenerateUpdateEvent): complete all
pending idle-time redraws before newly posted Expose events are
processed; add bounds of redrawn windows to update region to ensure all
child windows overdrawn by parents are redrawn.
* macosx/tkMacOSXWindowEvent.c: centralize clip and window invalidation
* macosx/tkMacOSXSubwindows.c: after location/size changes in the
* macosx/tkMacOSXWm.c: BoundsChanged carbon event handler;
correct/add window invalidation after window attribute changes.
* macosx/tkMacOSXSubwindows.c (XResizeWindow, XMoveResizeWindow,
XMoveWindow): factor out common code dealing with embedded and
non-toplevel windows; remove unnecessary clip and window invalidation.
* macosx/tkMacOSXButton.c (TkpDisplayButton): move clip setup closer to
native button drawing calls.
* macosx/tkMacOSXWm.c (TkMacOSXIsWindowZoomed, TkMacOSXZoomToplevel):
correct handle gridded windows in max size calculations.
* macosx/tkMacOSXEvent.c (TkMacOSXFlushWindows): use HIWindowFlush API
when available.
* macosx/tkMacOSXColor.c: cleanup whitespace and formatting.
* macosx/tkMacOSXDraw.c:
* macosx/tkMacOSXSubwindows.c:
* macosx/tkMacOSXWm.c:
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 6d1d064..f6781d5 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXDraw.c,v 1.2.2.22 2007/05/30 06:39:38 das Exp $ + * RCS: @(#) $Id: tkMacOSXDraw.c,v 1.2.2.23 2007/05/31 13:42:12 das Exp $ */ #include "tkMacOSXInt.h" @@ -408,9 +408,9 @@ TkPutImage( display->request++; destPort = TkMacOSXGetDrawablePort(d); portChanged = QDSwapPort(destPort, &savePort); - destBits = GetPortBitMapForCopyBits(destPort); TkMacOSXSetUpClippingRgn(d); + destBits = GetPortBitMapForCopyBits(destPort); srcPtr = &srcRect; SetRect(srcPtr, src_x, src_y, src_x + width, src_y + height); if (tkPictureIsOpen) { @@ -1602,7 +1602,6 @@ TkMacOSXSetupDrawingContext( if (port) { GetPortBounds(port, &portBounds); } - dc->saveState = NULL; if (port && !context) { dc->portChanged = QDSwapPort(port, &(dc->savePort)); |