Browse Source

Fix the clip/rotation problem.

pull/16/head
Steven Kirk 12 years ago
parent
commit
5048ebbcf8
  1. 12
      Windows/Perspex.Direct2D1/Renderer.cs

12
Windows/Perspex.Direct2D1/Renderer.cs

@ -149,13 +149,13 @@ namespace Perspex.Direct2D1
} }
// Draw the control and its children. // Draw the control and its children.
Matrix m = transform * translation; var m = transform * translation;
using (visual.ClipToBounds ? context.PushClip(visual.Bounds * m) : null) var d = context.PushTransform(m);
using (visual.ClipToBounds ? context.PushClip(visual.Bounds) : null)
{ {
using (context.PushTransform(m)) visual.Render(context);
{ d.Dispose();
visual.Render(context);
}
foreach (var child in visual.VisualChildren) foreach (var child in visual.VisualChildren)
{ {

Loading…
Cancel
Save