Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
if (!num_rects)
return;
- if (region_is_empty(dst->pCompositeClip)) {
+ if (RegionNil(dst->pCompositeClip)) {
DEBUGF("%s: empty clip, skipping\n", __FUNCTION__);
return;
}
if (dst->pCompositeClip->data &&
(!pixman_region_intersect(®ion, ®ion, dst->pCompositeClip) ||
- region_is_empty(®ion))) {
+ RegionNil(®ion))) {
DEBUGF("%s: zero-intersection between rectangles and clip\n",
__FUNCTION__);
pixman_region_fini(®ion);
}
}
-static inline Bool
-region_is_empty(pixman_region16_t * region)
-{
- return region->data && region->data->numRects == 0;
-}
-
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif