@ -1050,15 +1050,17 @@ namespace Avalonia.Skia
context . Clear ( Colors . Transparent ) ;
context . Clear ( Colors . Transparent ) ;
context . PushClip ( calc . IntermediateClip ) ;
context . PushClip ( calc . IntermediateClip ) ;
context . PushRenderOptions ( RenderOptions ) ;
context . Transform = calc . IntermediateTransform ;
context . Transform = calc . IntermediateTransform ;
context . RenderOptions = RenderOptions ;
context . DrawBitmap (
context . DrawBitmap (
tileBrushImage ,
tileBrushImage ,
1 ,
1 ,
sourceRect ,
sourceRect ,
targetRect ) ;
targetRect ) ;
context . PopRenderOptions ( ) ;
context . PopClip ( ) ;
context . PopClip ( ) ;
}
}
@ -1133,9 +1135,10 @@ namespace Avalonia.Skia
using ( var ctx = intermediate . CreateDrawingContext ( true ) )
using ( var ctx = intermediate . CreateDrawingContext ( true ) )
{
{
ctx . RenderOptions = RenderOptions ;
ctx . PushRenderOptions ( RenderOptions ) ;
ctx . Clear ( Colors . Transparent ) ;
ctx . Clear ( Colors . Transparent ) ;
content . Render ( ctx , rect . TopLeft = = default ? null : Matrix . CreateTranslation ( - rect . X , - rect . Y ) ) ;
content . Render ( ctx , rect . TopLeft = = default ? null : Matrix . CreateTranslation ( - rect . X , - rect . Y ) ) ;
ctx . PopRenderOptions ( ) ;
}
}
ConfigureTileBrush ( ref paintWrapper , targetRect , content . Brush , intermediate ) ;
ConfigureTileBrush ( ref paintWrapper , targetRect , content . Brush , intermediate ) ;
@ -1170,9 +1173,10 @@ namespace Avalonia.Skia
using var pictureTarget = new PictureRenderTarget ( _ gpu , _ grContext , _ intermediateSurfaceDpi ) ;
using var pictureTarget = new PictureRenderTarget ( _ gpu , _ grContext , _ intermediateSurfaceDpi ) ;
using ( var ctx = pictureTarget . CreateDrawingContext ( calc . IntermediateSize ) )
using ( var ctx = pictureTarget . CreateDrawingContext ( calc . IntermediateSize ) )
{
{
ctx . RenderOptions = RenderOptions ;
ctx . PushClip ( calc . IntermediateClip ) ;
ctx . PushClip ( calc . IntermediateClip ) ;
ctx . PushRenderOptions ( RenderOptions ) ;
content . Render ( ctx , transform ) ;
content . Render ( ctx , transform ) ;
ctx . PopRenderOptions ( ) ;
ctx . PopClip ( ) ;
ctx . PopClip ( ) ;
}
}