[Spice-devel] [spice-common PATCH] region.c: fix region_bounds_intersects
Yonit Halperin
yhalperi at redhat.com
Tue Apr 2 05:51:53 PDT 2013
region_bounds_intersects mistakingly ignored one of the input regions,
and compared the other region to itself.
---
common/region.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
--
1.8.1
More information about the Spice-devel
mailing list