diff options
author | marc_culler <marc.culler@gmail.com> | 2020-11-09 16:56:14 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-11-09 16:56:14 (GMT) |
commit | 060a521ec9c5662b438ce1e23f69e5bf5d68fe4a (patch) | |
tree | 3568ef85bef501cb846eb6686f6be87685209e7e | |
parent | 4621757eccd06843ee0a0b7b6d35f0e673ac6f25 (diff) | |
download | tk-060a521ec9c5662b438ce1e23f69e5bf5d68fe4a.zip tk-060a521ec9c5662b438ce1e23f69e5bf5d68fe4a.tar.gz tk-060a521ec9c5662b438ce1e23f69e5bf5d68fe4a.tar.bz2 |
Finish removing GCCache and remove some more platform specific code in xgc.c
-rw-r--r-- | macosx/tkMacOSXInt.h | 15 | ||||
-rw-r--r-- | xlib/xgc.c | 9 |
2 files changed, 2 insertions, 22 deletions
diff --git a/macosx/tkMacOSXInt.h b/macosx/tkMacOSXInt.h index 278fcac..61771a0 100644 --- a/macosx/tkMacOSXInt.h +++ b/macosx/tkMacOSXInt.h @@ -117,21 +117,6 @@ typedef struct { MODULE_SCOPE TkMacOSXEmbedHandler *tkMacOSXEmbedHandler; /* - * GC CGColorRef cache for tkMacOSXColor.c - */ - -typedef struct { - unsigned long cachedForeground; - CGColorRef cachedForegroundColor; - unsigned long cachedBackground; - CGColorRef cachedBackgroundColor; -} TkpGCCache; - -MODULE_SCOPE TkpGCCache *TkpGetGCCache(GC gc); -MODULE_SCOPE void TkpInitGCCache(GC gc); -MODULE_SCOPE void TkpFreeGCCache(GC gc); - -/* * Undef compatibility platform types defined above. */ @@ -13,13 +13,8 @@ */ #include "tkInt.h" - -#if !defined(MAC_OSX_TK) -# include <X11/Xlib.h> -#else -# include <tkMacOSXInt.h> -# include <X11/Xlib.h> -# include <X11/X.h> +#include <X11/Xlib.h> +#if defined(MAC_OSX_TK) # define Cursor XCursor # define Region XRegion #endif |