[cairo] [PATCH 24/71] drm: fixed test for whether path is a box

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Mon Apr 17 16:57:03 UTC 2017


cairo_clip_path_t doesn't have an flags field anymore, so we need
to fix the test for whether a path is a box.

Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
 src/drm/cairo-drm-i915-surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drm/cairo-drm-i915-surface.c b/src/drm/cairo-drm-i915-surface.c
index e0f9aa5f6..7c8c358b0 100644
--- a/src/drm/cairo-drm-i915-surface.c
+++ b/src/drm/cairo-drm-i915-surface.c
@@ -1827,7 +1827,7 @@ _clip_get_solitary_path (const cairo_clip_t *clip)
     cairo_clip_path_t *path = NULL;
 
     do {
-	if ((iter->flags & CAIRO_CLIP_PATH_IS_BOX) == 0) {
+	if (! _cairo_path_fixed_is_box (&iter->path, NULL)) {
 	    if (path != NULL)
 		return FALSE;
 
-- 
2.11.0.rc0.7.gbe5a750



More information about the cairo mailing list