Commit 55744d1e authored by Maciej Suminski's avatar Maciej Suminski

Fixed Cairo's render target setting.

parent 2a45987d
...@@ -736,8 +736,13 @@ void CAIRO_GAL::SetTarget( RenderTarget aTarget ) ...@@ -736,8 +736,13 @@ void CAIRO_GAL::SetTarget( RenderTarget aTarget )
return; return;
// Cairo grouping prevents display of overlapping items on the same layer in the lighter color // Cairo grouping prevents display of overlapping items on the same layer in the lighter color
if( isInitialized )
{
storePath();
cairo_pop_group_to_source( currentContext ); cairo_pop_group_to_source( currentContext );
cairo_paint_with_alpha( currentContext, fillColor.a ); cairo_paint_with_alpha( currentContext, fillColor.a );
}
switch( aTarget ) switch( aTarget )
{ {
...@@ -752,6 +757,7 @@ void CAIRO_GAL::SetTarget( RenderTarget aTarget ) ...@@ -752,6 +757,7 @@ void CAIRO_GAL::SetTarget( RenderTarget aTarget )
break; break;
} }
if( isInitialized )
cairo_push_group( currentContext ); cairo_push_group( currentContext );
currentTarget = aTarget; currentTarget = aTarget;
......
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