Path caching & HWND removal

Hi everyone-

I hope you’re having a good holiday. Just pushed a couple of changes to the direct2d branch.

Refactored Path caching
The path cache will now scale the geometry and flattening tolerance according the transform passed to Graphics::drawPath and Graphics::fillPath. In practice this means if you create a path with a small size (say, 1x1) and then paint that path with a 1-pixel wide stroke and a scaling transform, the stroked path should still draw 1 pixel wide after scaling (thanks @reFX!)

Removed the HWND forward declaration
All HWND references should be gone from the public header files (thanks @dave96!)

More to come!
Matt

1 Like