diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-16 12:58:32 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-16 12:58:32 (GMT) |
commit | 17cd772470e5867a435c8475e35b6cbba1a63737 (patch) | |
tree | c7db89a7f4c7b77e72b567ac7c42c00293030e12 /win | |
parent | 444e600b9353a21efde61a3ea5444ae541a85308 (diff) | |
download | tk-17cd772470e5867a435c8475e35b6cbba1a63737.zip tk-17cd772470e5867a435c8475e35b6cbba1a63737.tar.gz tk-17cd772470e5867a435c8475e35b6cbba1a63737.tar.bz2 |
Bug [f9eddb541a] (TkSetRegion(), XSetClipRectangles): Patch 1 from Christopher Chavez - Introduce a convenience function TkpCopyRegion(dst, src).
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 a2f6fd7..9e9d80a 100644 --- a/win/tkWinRegion.c +++ b/win/tkWinRegion.c @@ -285,6 +285,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 |