summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEmbed.c
diff options
context:
space:
mode:
authordas <das>2007-11-08 14:24:47 (GMT)
committerdas <das>2007-11-08 14:24:47 (GMT)
commitc08f2e1d5f2562b82353e92ed9c8e4243de8664c (patch)
treeaddebaf6715f8d5dccdc5296f9984f43d180217d /macosx/tkMacOSXEmbed.c
parenta8883697879f79d69b50fd4ccb658401d3c19b64 (diff)
downloadtk-c08f2e1d5f2562b82353e92ed9c8e4243de8664c.zip
tk-c08f2e1d5f2562b82353e92ed9c8e4243de8664c.tar.gz
tk-c08f2e1d5f2562b82353e92ed9c8e4243de8664c.tar.bz2
* macosx/tkMacOSXSubwindows.c: add pixmap size field to MacDrawable
* macosx/tkMacOSXInt.h: struct; add flag for B&W pixmaps. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXMenu.c:
Diffstat (limited to 'macosx/tkMacOSXEmbed.c')
-rw-r--r--macosx/tkMacOSXEmbed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c
index 8219c8e..bffd130 100644
--- a/macosx/tkMacOSXEmbed.c
+++ b/macosx/tkMacOSXEmbed.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.14 2007/10/12 03:14:48 das Exp $
+ * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.15 2007/11/08 14:24:47 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -155,6 +155,7 @@ TkpMakeWindow(
macWin->flags = TK_CLIP_INVALID;
macWin->grafPtr = NULL;
macWin->context = NULL;
+ macWin->size = CGSizeZero;
if (Tk_IsTopLevel(macWin->winPtr)) {
/*
*This will be set when we are mapped.
@@ -298,6 +299,7 @@ TkpUseWindow(
macWin->grafPtr = NULL;
macWin->context = NULL;
+ macWin->size = CGSizeZero;
macWin->visRgn = NULL;
macWin->aboveVisRgn = NULL;
macWin->drawRect = CGRectNull;