diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-17 19:56:17 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-17 19:56:17 (GMT) |
commit | 3b32c45a371ed2aae882f770c71a47e6e196a6dc (patch) | |
tree | 34f259df0149bdaad3aaa66fc3fc7e7e0a4d04c9 /win | |
parent | 6ec6cf0d78478cb29891c5b96cbaabc605952fbb (diff) | |
parent | 63d4fcc37a6c1a0627064685179c8d4ec97a0217 (diff) | |
download | tk-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.c | 24 |
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 |