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

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Thu Jun 30 15:46:05 UTC 2016


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 e0f9aa5..7c8c358 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.6.4.442.g545299f



More information about the cairo mailing list