summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-01 11:01:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-01 11:01:36 (GMT)
commit3b2b092cbd2b66a1f34ee813a39102ad49ff66f8 (patch)
tree93bf66010f9c2ad1c02a52e03874394326469c08 /xlib
parent25c97fd4f962540671a55140d1ff4134c61146b1 (diff)
downloadtk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.zip
tk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.tar.gz
tk-3b2b092cbd2b66a1f34ee813a39102ad49ff66f8.tar.bz2
more Region-related revamp.
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index f6f4c5d..9ae8b6f 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -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)