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

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


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 d1ba0d5..e0f9aa5 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 c2bf80d..872bee4 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.6.4.442.g545299f



More information about the cairo mailing list