summaryrefslogtreecommitdiff
path: root/src/drm/cairo-drm-i965-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drm/cairo-drm-i965-surface.c')
-rw-r--r--src/drm/cairo-drm-i965-surface.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/drm/cairo-drm-i965-surface.c b/src/drm/cairo-drm-i965-surface.c
index e578d6f..3947836 100644
--- a/src/drm/cairo-drm-i965-surface.c
+++ b/src/drm/cairo-drm-i965-surface.c
@@ -1322,7 +1322,7 @@ i965_surface_stroke (void *abstract_dst,
return status;
}
- if (path->is_rectilinear) {
+ if (_cairo_path_fixed_stroke_is_rectilinear (path)) {
cairo_boxes_t boxes;
_cairo_boxes_init (&boxes);
@@ -1343,8 +1343,7 @@ i965_surface_stroke (void *abstract_dst,
goto CLEANUP_BOXES;
}
- _cairo_polygon_init (&info.polygon);
- _cairo_polygon_limit (&info.polygon, clip_boxes, num_boxes);
+ _cairo_polygon_init (&info.polygon, clip_boxes, num_boxes);
status = _cairo_path_fixed_stroke_to_polygon (path,
stroke_style,
@@ -1429,9 +1428,9 @@ i965_surface_fill (void *abstract_dst,
return status;
}
- assert (! path->is_empty_fill);
+ assert (! _cairo_path_fixed_fill_is_empty (path));
- if (_cairo_path_fixed_is_rectilinear_fill (path)) {
+ if (_cairo_path_fixed_fill_is_rectilinear (path)) {
cairo_boxes_t boxes;
_cairo_boxes_init (&boxes);
@@ -1451,8 +1450,7 @@ i965_surface_fill (void *abstract_dst,
goto CLEANUP_BOXES;
}
- _cairo_polygon_init (&info.polygon);
- _cairo_polygon_limit (&info.polygon, clip_boxes, num_boxes);
+ _cairo_polygon_init (&info.polygon, clip_boxes, num_boxes);
status = _cairo_path_fixed_fill_to_polygon (path, tolerance, &info.polygon);
if (unlikely (status))