[cairo] [PATCH 22/71] drm: fixed calls to _cairo_botor_scan_converter_add_polygon()

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


The converter's add_polygon() call vector isn't in the cairo_scan_converter_t
structure anymore, so we need to call it directly.

Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
 src/drm/cairo-drm-i915-surface.c | 3 ++-
 src/drm/cairo-drm-i965-surface.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/drm/cairo-drm-i915-surface.c b/src/drm/cairo-drm-i915-surface.c
index d1ba0d586..e0f9aa5f6 100644
--- a/src/drm/cairo-drm-i915-surface.c
+++ b/src/drm/cairo-drm-i915-surface.c
@@ -1862,7 +1862,8 @@ _composite_polygon_spans (void                          *closure,
 
     _cairo_botor_scan_converter_init (&converter, &box, info->fill_rule);
 
-    status = converter.base.add_polygon (&converter.base, &info->polygon);
+    status = _cairo_botor_scan_converter_add_polygon (&converter, &info->polygon);
+
     if (likely (status == CAIRO_STATUS_SUCCESS))
 	status = converter.base.generate (&converter.base, renderer);
 
diff --git a/src/drm/cairo-drm-i965-surface.c b/src/drm/cairo-drm-i965-surface.c
index c2bf80d4e..872bee4dc 100644
--- a/src/drm/cairo-drm-i965-surface.c
+++ b/src/drm/cairo-drm-i965-surface.c
@@ -1269,7 +1269,7 @@ _composite_polygon_spans (void                          *closure,
 
     _cairo_botor_scan_converter_init (&converter, &box, info->fill_rule);
 
-    status = converter.base.add_polygon (&converter.base, &info->polygon);
+    status = _cairo_botor_scan_converter_add_polygon (&converter, &info->polygon);
     if (likely (status == CAIRO_STATUS_SUCCESS))
 	status = converter.base.generate (&converter.base, renderer);
 
-- 
2.11.0.rc0.7.gbe5a750



More information about the cairo mailing list