Kaydet (Commit) b65b4160 authored tarafından Radek Doulik's avatar Radek Doulik

fill whole polypolygon at once, so that fill rule is applied correctly

  - fixes rest of n#759172

Change-Id: I6c2694bf8276337b7d1fa54a12867bfc2b658a23
üst 8c482683
......@@ -1045,12 +1045,6 @@ namespace cairocanvas
if( aPolygon.isClosed() )
cairo_close_path( pCairo );
if( aOperation == Fill && pTextures )
{
cairo_set_matrix( pCairo, &aOrigMatrix );
doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() );
cairo_set_matrix( pCairo, &aIdentityMatrix );
}
}
else
{
......@@ -1063,6 +1057,14 @@ namespace cairocanvas
}
}
}
if( aOperation == Fill && pTextures )
{
cairo_set_matrix( pCairo, &aOrigMatrix );
doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() );
cairo_set_matrix( pCairo, &aIdentityMatrix );
}
if( bOpToDo && ( aOperation != Fill || !pTextures ) )
doOperation( aOperation, pCairo, pTextures, pDevice, aPolyPolygon.getB2DRange() );
......
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