Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
pixman
improve-pixregion-nil.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File improve-pixregion-nil.diff of Package pixman
diff --git a/pixman/pixman-region.c b/pixman/pixman-region.c index a6a4005..179241d 100644 --- a/pixman/pixman-region.c +++ b/pixman/pixman-region.c @@ -69,7 +69,11 @@ #include <stdio.h> #include "pixman-private.h" -#define PIXREGION_NIL(reg) ((reg)->data && !(reg)->data->numRects) +#define PIXREGION_NIL(reg) (((reg)->data && !(reg)->data->numRects) || \ + (! (reg)->data && \ + (reg)->extents.x1 == (reg)->extents.x2 && \ + (reg)->extents.y1 == (reg)->extents.y2)) + /* not a region */ #define PIXREGION_NAR(reg) ((reg)->data == pixman_broken_data) #define PIXREGION_NUMRECTS(reg) ((reg)->data ? (reg)->data->numRects : 1)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor