Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Direct2D: Update assertion to check for alignment against screen rath…
…er than current transform This assertion is intended to mirror the behaviour of an informational/performance diagnostic message raised by the D2D debugging layer. It seems the D2D diagnostic is raised when the proposed clip region is aligned to the screen, not to the current transform. Before this change, the assertion could incorrectly fire when clipping to transformed rectangles. This could be seen when clicking the star-shaped buttons in the ComponentTransformsDemo. With this change in place, the assertion will still fire when e.g. calling Graphics::reduceClipRegion on a screen-aligned rectangular path, but will not fire when this path is skewed/rotated etc.
- Loading branch information