diff options
author | treectrl <treectrl> | 2005-05-21 00:51:25 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2005-05-21 00:51:25 (GMT) |
commit | ad9ebaa8a8b863f4a7399219075d20c8b37ab5e6 (patch) | |
tree | 76be694cbba1e4a4656c6a260155fa930b66b936 /generic | |
parent | ea8ec366c181aeee121c425e667d8fe33dd19331 (diff) | |
download | tktreectrl-ad9ebaa8a8b863f4a7399219075d20c8b37ab5e6.zip tktreectrl-ad9ebaa8a8b863f4a7399219075d20c8b37ab5e6.tar.gz tktreectrl-ad9ebaa8a8b863f4a7399219075d20c8b37ab5e6.tar.bz2 |
Fixes to Tk_FillRegion() (thx to M Kirkham).
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTreeUtils.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkTreeUtils.c b/generic/tkTreeUtils.c index 74e3c29..078a675 100644 --- a/generic/tkTreeUtils.c +++ b/generic/tkTreeUtils.c @@ -5,7 +5,7 @@ * * Copyright (c) 2002-2005 Tim Baker * - * RCS: @(#) $Id: tkTreeUtils.c,v 1.17 2005/05/20 20:51:08 treectrl Exp $ + * RCS: @(#) $Id: tkTreeUtils.c,v 1.18 2005/05/21 00:51:25 treectrl Exp $ */ #include "tkTreeCtrl.h" @@ -17,7 +17,7 @@ #if defined(MAC_OSX_TK) #include <Carbon/Carbon.h> #include "tkMacOSXInt.h" -static PixPathHandle gPenPat = NULL; +static PixPatHandle gPenPat = NULL; #endif /* @@ -472,7 +472,6 @@ void Tk_FillRegion(Display *display, Drawable drawable, GC gc, TkRegion rgn) DeleteObject(brush); TkWinReleaseDrawableDC(drawable, dc, &dcState); #elif defined(TARGET_OS_MAC) - MacDrawable *macWin = (MacDrawable *) d; CGrafPtr saveWorld; GDHandle saveDevice; GWorldPtr destPort; @@ -482,7 +481,7 @@ void Tk_FillRegion(Display *display, Drawable drawable, GC gc, TkRegion rgn) if (gPenPat == NULL) gPenPat = NewPixPat(); if (TkSetMacColor(gc->foreground, &macColor) == true) - MakeRGBPat(gPenPath, &macColor); + MakeRGBPat(gPenPat, &macColor); display->request++; GetGWorld(&saveWorld, &saveDevice); SetGWorld(destPort, NULL); |