Browse Source
Move ImmediateRenderer clearing code to Paint().
pull/1697/head
Jumar Macato
8 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
3 additions and
3 deletions
-
src/Avalonia.Visuals/Rendering/ImmediateRenderer.cs
|
|
|
@ -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); |
|
|
|
|