diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-01 11:01:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-01 11:01:36 (GMT) |
commit | 3b2b092cbd2b66a1f34ee813a39102ad49ff66f8 (patch) | |
tree | 93bf66010f9c2ad1c02a52e03874394326469c08 /xlib | |
parent | 25c97fd4f962540671a55140d1ff4134c61146b1 (diff) | |
download | tk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.zip tk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.tar.gz tk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.tar.bz2 |
more Region-related revamp.
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/xgc.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -24,10 +24,11 @@ # include <tkMacOSXInt.h> # include <X11/Xlib.h> # include <X11/X.h> +# define Cursor XCursor +# define Region XRegion # define gcCacheSize sizeof(TkpGCCache) #endif -#undef TkSetRegion /* *---------------------------------------------------------------------- @@ -456,11 +457,11 @@ XSetClipOrigin( *---------------------------------------------------------------------- */ -void +int TkSetRegion( Display *display, GC gc, - Region r) + TkRegion r) { if (r == NULL) { Tcl_Panic("must not pass NULL to TkSetRegion for compatibility with X11; use XSetClipMask instead"); @@ -473,6 +474,7 @@ TkSetRegion( TkpRetainRegion(r); #endif } + return Success; } int @@ -719,7 +721,7 @@ XPolygonRegion( { return 0; } - + void XDestroyIC( XIC ic) |