|
|
@ -52,7 +52,7 @@ partial class ServerCompositionVisual |
|
|
// We ignore Visual's RenderTransform completely since it's set by AdornerLayer and can be out of sync
|
|
|
// We ignore Visual's RenderTransform completely since it's set by AdornerLayer and can be out of sync
|
|
|
// with compositor-driver animations
|
|
|
// with compositor-driver animations
|
|
|
var ownTransform = MatrixUtils.ComputeTransform(Size, AnchorPoint, CenterPoint, Matrix.Identity, Scale, |
|
|
var ownTransform = MatrixUtils.ComputeTransform(Size, AnchorPoint, CenterPoint, Matrix.Identity, Scale, |
|
|
RotationAngle, Orientation, Offset); |
|
|
RotationAngle, Orientation, Offset + Translation); |
|
|
if ( |
|
|
if ( |
|
|
AdornerLayer_GetExpectedSharedAncestor(this) is {} sharedAncestor |
|
|
AdornerLayer_GetExpectedSharedAncestor(this) is {} sharedAncestor |
|
|
&& ComputeTransformFromAncestor(AdornedVisual, sharedAncestor, out var adornerLayerToAdornedVisual)) |
|
|
&& ComputeTransformFromAncestor(AdornedVisual, sharedAncestor, out var adornerLayerToAdornedVisual)) |
|
|
@ -63,7 +63,7 @@ partial class ServerCompositionVisual |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
_ownTransform = MatrixUtils.ComputeTransform(Size, AnchorPoint, CenterPoint, TransformMatrix, Scale, |
|
|
_ownTransform = MatrixUtils.ComputeTransform(Size, AnchorPoint, CenterPoint, TransformMatrix, Scale, |
|
|
RotationAngle, Orientation, Offset); |
|
|
RotationAngle, Orientation, Offset + Translation); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PropagateFlags(true, true); |
|
|
PropagateFlags(true, true); |
|
|
@ -170,4 +170,4 @@ partial class ServerCompositionVisual |
|
|
_pools.IntStackPool.Return(ref _adornerPushedClipStack!); |
|
|
_pools.IntStackPool.Return(ref _adornerPushedClipStack!); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|