[PATCH weston] rpi-renderer: don't pass a box to pixman_region32_contains_point()

Derek Foreman derekf at osg.samsung.com
Fri Nov 21 10:31:04 PST 2014


We don't care which box contained the point, so don't pass one in.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---

Had thought I'd already sent this one up a while back, but can't find
it in patchwork or on the list...

 src/rpi-renderer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c
index c222eb6..9585be6 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -337,8 +337,7 @@ apply_opaque_region(struct wl_shm_buffer *buffer,
 	for (y = 0; y < height; y++) {
 		for (x = 0; x < width; x++) {
 			int i = y * stride / 4 + x;
-			pixman_box32_t box;
-			if (pixman_region32_contains_point (opaque_region, x, y, &box)) {
+			if (pixman_region32_contains_point (opaque_region, x, y, NULL)) {
 				dst[i] = src[i] | 0xff000000;
 			} else {
 				dst[i] = src[i];
-- 
2.1.1



More information about the wayland-devel mailing list