diff options
author | Keith Packard <keithp@keithp.com> | 2013-07-11 16:08:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-31 16:58:16 -0700 |
commit | 26f013ba45b08a02bb028a461af68288a86fadb1 (patch) | |
tree | 28640fb1c8d5b4aa2ab9e02c7f2e5f8cb852ba30 /include | |
parent | d25c217964eb1fe54c3a54bca4cac7f47b4b9fdf (diff) |
Add a RegionDuplicate function
This allocates a new region structure and copies a source region into
it in a single API rather than forcing the caller to do both steps themselves.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/regionstr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/regionstr.h b/include/regionstr.h index 805257b3f..4a0725d62 100644 --- a/include/regionstr.h +++ b/include/regionstr.h @@ -213,6 +213,8 @@ extern _X_EXPORT RegionPtr RegionCreate(BoxPtr /*rect */ , extern _X_EXPORT void RegionDestroy(RegionPtr /*pReg */ ); +extern _X_EXPORT RegionPtr RegionDuplicate(RegionPtr /* pOld */); + static inline Bool RegionCopy(RegionPtr dst, RegionPtr src) { |