summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-17 19:56:17 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-17 19:56:17 (GMT)
commit3b32c45a371ed2aae882f770c71a47e6e196a6dc (patch)
tree34f259df0149bdaad3aaa66fc3fc7e7e0a4d04c9 /win
parent6ec6cf0d78478cb29891c5b96cbaabc605952fbb (diff)
parent63d4fcc37a6c1a0627064685179c8d4ec97a0217 (diff)
downloadtk-3b32c45a371ed2aae882f770c71a47e6e196a6dc.zip
tk-3b32c45a371ed2aae882f770c71a47e6e196a6dc.tar.gz
tk-3b32c45a371ed2aae882f770c71a47e6e196a6dc.tar.bz2
Fix [f9eddb541a]: Improve TkSetRegion(); implement XSetClipRectangles() on Windows and improve it. Thanks to Christopher Chavez.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinRegion.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/win/tkWinRegion.c b/win/tkWinRegion.c
index 95ddc8b..b6f87dc 100644
--- a/win/tkWinRegion.c
+++ b/win/tkWinRegion.c
@@ -278,6 +278,30 @@ TkSubtractRegion(
}
/*
+ *----------------------------------------------------------------------
+ *
+ * TkpCopyRegion --
+ *
+ * Makes the destination region a copy of the source region.
+ *
+ * Results:
+ * None.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+void
+TkpCopyRegion(
+ TkRegion dst,
+ TkRegion src)
+{
+ CombineRgn((HRGN)dst, (HRGN)src, NULL, RGN_COPY);
+}
+
+/*
* Local Variables:
* mode: c
* c-basic-offset: 4