summaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-06-14 13:35:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-06-14 13:35:46 (GMT)
commit8abf69416e48492ccda18dcfc6e8adf9d33d0a32 (patch)
treec4ad54b29f443e940a51b7b0ca0a9c57e5b65adc /mac
parent8c18f8111d03425255bcd1d60b70da5c9ae5f521 (diff)
downloadtk-8abf69416e48492ccda18dcfc6e8adf9d33d0a32.zip
tk-8abf69416e48492ccda18dcfc6e8adf9d33d0a32.tar.gz
tk-8abf69416e48492ccda18dcfc6e8adf9d33d0a32.tar.bz2
TIP#98 implementation; improved photo image copy and GIF frame access
Diffstat (limited to 'mac')
-rw-r--r--mac/tkMacRegion.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/mac/tkMacRegion.c b/mac/tkMacRegion.c
index c2a70ae..86e193e 100644
--- a/mac/tkMacRegion.c
+++ b/mac/tkMacRegion.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacRegion.c,v 1.3 1999/05/22 06:35:00 jingham Exp $
+ * RCS: @(#) $Id: tkMacRegion.c,v 1.4 2002/06/14 13:35:49 dkf Exp $
*/
#include "tkInt.h"
@@ -216,3 +216,33 @@ TkClipBox(
rect_return->width = (**rgn).rgnBBox.right - (**rgn).rgnBBox.left;
rect_return->height = (**rgn).rgnBBox.bottom - (**rgn).rgnBBox.top;
}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * TkSubtractRegion --
+ *
+ * Implements the equivilent of the X window function
+ * XSubtractRegion. See X window documentation for more details.
+ *
+ * Results:
+ * None.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+void
+TkSubtractRegion(
+ TkRegion sra,
+ TkRegion srb,
+ TkRegion dr_return)
+{
+ RgnHandle srcRgnA = (RgnHandle) sra;
+ RgnHandle srcRgnB = (RgnHandle) srb;
+ RgnHandle destRgn = (RgnHandle) dr_return;
+
+ DiffRgn(srcRgnA, srcRgnB, destRgn);
+}