diff options
author | culler <culler> | 2020-11-10 20:41:12 (GMT) |
---|---|---|
committer | culler <culler> | 2020-11-10 20:41:12 (GMT) |
commit | a57e550fe40ed58660f2b7e50f64f56bbc0e9518 (patch) | |
tree | 366f299a7d3c8a529e2f9677908d39d9f3fa0e31 /xlib/xgc.c | |
parent | 6133a711414cfb8fcc3a8b52ecf25b59a09e5800 (diff) | |
parent | f36c3e13208f90bdfdf5e12b4d8db7049aaa265f (diff) | |
download | tk-a57e550fe40ed58660f2b7e50f64f56bbc0e9518.zip tk-a57e550fe40ed58660f2b7e50f64f56bbc0e9518.tar.gz tk-a57e550fe40ed58660f2b7e50f64f56bbc0e9518.tar.bz2 |
Merge 8.6
Diffstat (limited to 'xlib/xgc.c')
-rw-r--r-- | xlib/xgc.c | 43 |
1 files changed, 4 insertions, 39 deletions
@@ -13,16 +13,8 @@ */ #include "tkInt.h" - -#if !defined(MAC_OSX_TK) -# include <X11/Xlib.h> -# define TkpInitGCCache(gc) -# define TkpFreeGCCache(gc) -# define TkpGetGCCache(gc) -#else -# include <tkMacOSXInt.h> -# include <X11/Xlib.h> -# include <X11/X.h> +#include <X11/Xlib.h> +#if defined(MAC_OSX_TK) #endif @@ -30,10 +22,7 @@ typedef struct { XGCValues gc; char dash[MAX_DASH_LIST_SIZE]; -#ifdef MAC_OSX_TK - TkpGCCache cache; -#endif -} XGCValuesWithCache; +} XGCValuesWithDash; /* *---------------------------------------------------------------------- @@ -117,7 +106,7 @@ XCreateGC( * initialization. */ - gp = (GC)ckalloc(sizeof(XGCValuesWithCache)); + gp = (GC)ckalloc(sizeof(XGCValuesWithDash)); if (!gp) { return NULL; } @@ -158,32 +147,9 @@ XCreateGC( clip_mask->type = TKP_CLIP_PIXMAP; clip_mask->value.pixmap = values->clip_mask; } - TkpInitGCCache(gp); - return gp; } -#ifdef MAC_OSX_TK -/* - *---------------------------------------------------------------------- - * - * TkpGetGCCache -- - * - * Results: - * Pointer to the TkpGCCache at the end of the GC. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -TkpGCCache* -TkpGetGCCache(GC gc) { - return (gc ? &((XGCValuesWithCache *)gc)->cache : NULL); -} -#endif - /* *---------------------------------------------------------------------- * @@ -265,7 +231,6 @@ int XFreeGC( if (gc != NULL) { FreeClipMask(gc); - TkpFreeGCCache(gc); ckfree(gc); } return Success; |