projects
/
profile
/
ivi
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd4f2f
)
compute_composite_region32: Zero extents before returning FALSE.
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 21 Sep 2010 14:05:52 +0000
(10:05 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 21 Sep 2010 14:05:52 +0000
(10:05 -0400)
If the extents of the composite region are broken such that x2 <= x1
or y2 <= y1, then we need to zero the extents before returning so that
the region won't be completely broken when calling
pixman_region32_fini().
pixman/pixman.c
patch
|
blob
|
history
diff --git
a/pixman/pixman.c
b/pixman/pixman.c
index
2296325
..
bd9305b
100644
(file)
--- a/
pixman/pixman.c
+++ b/
pixman/pixman.c
@@
-306,6
+306,10
@@
pixman_compute_composite_region32 (pixman_region32_t * region,
if (region->extents.x1 >= region->extents.x2 ||
region->extents.y1 >= region->extents.y2)
{
+ region->extents.x1 = 0;
+ region->extents.x2 = 0;
+ region->extents.y1 = 0;
+ region->extents.y2 = 0;
return FALSE;
}