|
|
|
@ -12,10 +12,6 @@ namespace Avalonia.Media |
|
|
|
{ |
|
|
|
private readonly IDrawingContextImpl _impl; |
|
|
|
private int _currentLevel; |
|
|
|
//Internal tranformation that is applied but not exposed anywhere
|
|
|
|
//To be used for DPI scaling, etc
|
|
|
|
private Matrix? _hiddenPostTransform = Matrix.Identity; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static readonly Stack<Stack<PushedState>> StateStackPool = new Stack<Stack<PushedState>>(); |
|
|
|
@ -39,10 +35,9 @@ namespace Avalonia.Media |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public DrawingContext(IDrawingContextImpl impl, Matrix? hiddenPostTransform = null) |
|
|
|
public DrawingContext(IDrawingContextImpl impl) |
|
|
|
{ |
|
|
|
_impl = impl; |
|
|
|
_hiddenPostTransform = hiddenPostTransform; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -60,8 +55,6 @@ namespace Avalonia.Media |
|
|
|
{ |
|
|
|
_currentTransform = value; |
|
|
|
var transform = _currentTransform*_currentContainerTransform; |
|
|
|
if (_hiddenPostTransform.HasValue) |
|
|
|
transform = transform*_hiddenPostTransform.Value; |
|
|
|
_impl.Transform = transform; |
|
|
|
} |
|
|
|
} |
|
|
|
|