On Sat Mar 8 21:28:51 2025 +0000, Nikolay Sivov wrote:
Is this testable? We do have StrokeAndFillPath call for emfdc in tests, and it does not look like it's failing. Or it's an issue with last error only?
I guess that Dmitry's use case is on a printer DC, I think it wouldn't fail on EMF DC. So yes, it's testable but more tricky.
The difference between bounds rect update in win32u vs. gdi32 is testable too, but the test isn't that interesting. I didn't check this specifically, but I remember seeing that generally if you use win32u directly on EMF DC, it's not recorded but bounds are updated.
FWIW, the bounds rect on native seems more generic than just EMF/printer DC. I recall finding that something like `NtGdiGetBoundsRect` (or something similar) has a flag to get what we need and it works on other DC types too. We don't have that yet.