summaryrefslogtreecommitdiff
path: root/pixman/pixman-region.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixman/pixman-region.c')
-rw-r--r--pixman/pixman-region.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pixman/pixman-region.c b/pixman/pixman-region.c
index 80219c6..70c282d 100644
--- a/pixman/pixman-region.c
+++ b/pixman/pixman-region.c
@@ -2356,6 +2356,16 @@ PREFIX (_reset) (region_type_t *region, box_type_t *box)
region->data = NULL;
}
+PIXMAN_EXPORT void
+PREFIX (_clear) (region_type_t *region)
+{
+ GOOD (region);
+ FREE_DATA (region);
+
+ region->extents = *pixman_region_empty_box;
+ region->data = pixman_region_empty_data;
+}
+
/* box is "return" value */
PIXMAN_EXPORT int
PREFIX (_contains_point) (region_type_t * region,