rpi-renderer: don't pass a box to pixman_region32_contains_point()
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 21 Nov 2014 18:31:04 +0000 (12:31 -0600)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 1 Dec 2014 12:30:28 +0000 (14:30 +0200)
We don't care which box contained the point, so don't pass one in.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
src/rpi-renderer.c

index 2feab63..94d0424 100644 (file)
@@ -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];