|
|
@@ -54,6 +54,9 @@ namespace Avalonia.Rendering
|
|
|
{
|
|
|
using (var context = new DrawingContext(_renderTarget.CreateDrawingContext(this)))
|
|
|
{
|
|
|
+
|
|
|
+ context.PlatformImpl.Clear(Colors.Transparent);
|
|
|
+
|
|
|
using (context.PushTransformContainer())
|
|
|
{
|
|
|
Render(context, _root, _root.Bounds);
|
|
|
@@ -224,9 +227,6 @@ namespace Avalonia.Rendering
|
|
|
var clipToBounds = visual.ClipToBounds;
|
|
|
var bounds = new Rect(visual.Bounds.Size);
|
|
|
|
|
|
- if (visual == _root)
|
|
|
- context.PlatformImpl.Clear(Colors.Transparent);
|
|
|
-
|
|
|
if (visual.IsVisible && opacity > 0)
|
|
|
{
|
|
|
var m = Matrix.CreateTranslation(visual.Bounds.Position);
|