summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-21 14:06:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-21 14:06:54 (GMT)
commitaa7b5aca7453deb72f795bcac257cb64ee9fe76e (patch)
tree5ab0edff8ccd94cacd9aba35feecb823a0548d67 /xlib/xgc.c
parentc3a1c1de43aa94d3bd7fafe4e993976573caa782 (diff)
parent6560e31a6006a2aec8c95564ec8287088c2e11de (diff)
downloadtk-aa7b5aca7453deb72f795bcac257cb64ee9fe76e.zip
tk-aa7b5aca7453deb72f795bcac257cb64ee9fe76e.tar.gz
tk-aa7b5aca7453deb72f795bcac257cb64ee9fe76e.tar.bz2
Merge 8.6
Diffstat (limited to 'xlib/xgc.c')
-rw-r--r--xlib/xgc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 22f4b4e..88feefe 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -50,10 +50,6 @@ static TkpClipMask *AllocClipMask(GC gc) {
if (clip_mask == NULL) {
clip_mask = (TkpClipMask *)ckalloc(sizeof(TkpClipMask));
gc->clip_mask = (Pixmap) clip_mask;
-#ifdef MAC_OSX_TK
- } else if (clip_mask->type == TKP_CLIP_REGION) {
- TkpReleaseRegion(clip_mask->value.region);
-#endif
}
return clip_mask;
}
@@ -76,11 +72,6 @@ static TkpClipMask *AllocClipMask(GC gc) {
static void FreeClipMask(GC gc) {
if (gc->clip_mask != None) {
-#ifdef MAC_OSX_TK
- if (((TkpClipMask*) gc->clip_mask)->type == TKP_CLIP_REGION) {
- TkpReleaseRegion(((TkpClipMask*) gc->clip_mask)->value.region);
- }
-#endif
ckfree((char *)gc->clip_mask);
gc->clip_mask = None;
}
@@ -496,9 +487,6 @@ TkSetRegion(
clip_mask->type = TKP_CLIP_REGION;
clip_mask->value.region = r;
-#ifdef MAC_OSX_TK
- TkpRetainRegion(r);
-#endif
}
return Success;
}