Kaydet (Commit) 749c5a08 authored tarafından Caolán McNamara's avatar Caolán McNamara

use feeble fallback for older cairo

Change-Id: I93f394575d9afa8eac50a5a7bb36453ae01675ff
üst 018dd407
......@@ -798,9 +798,14 @@ bool SvpSalGraphics::drawPolyLine(
aEdge.setB2DPoint(0, aEdge.getB2DPoint(1));
}
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
cairo_region_t* pRegion = cairo_region_create_rectangles(aExtents.data(), aExtents.size());
cairo_region_get_extents(pRegion, &extents);
cairo_region_destroy(pRegion);
#else
if (!aExtents.empty())
extents = aExtents[0];
#endif
}
releaseCairoContext(cr, false, extents);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment