diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-04-02 08:45:42 -0400 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-04-02 08:45:42 -0400 |
commit | b52948d7920a24693a79a270b2f60a284dc10ff5 (patch) | |
tree | d34cf18315b4fa8ab1c54fb6389cd32d25f3f22c | |
parent | 063f4dd3855048bf26e5a9e12f7d10959f4b7489 (diff) |
region.c: fix region_bounds_intersects
region_bounds_intersects mistakingly ignored one of the input regions,
and compared the other region to itself.
-rw-r--r-- | common/region.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/region.c b/common/region.c index cd9ade0..14a27ed 100644 --- a/common/region.c +++ b/common/region.c @@ -420,7 +420,7 @@ int region_bounds_intersects(const QRegion *rgn1, const QRegion *rgn2) pixman_box32_t *extents1, *extents2; extents1 = pixman_region32_extents((pixman_region32_t *)rgn1); - extents2 = pixman_region32_extents((pixman_region32_t *)rgn1); + extents2 = pixman_region32_extents((pixman_region32_t *)rgn2); return EXTENTCHECK(extents1, extents2); } |