On Sat Mar 8 21:41:13 2025 +0000, Jacek Caban wrote:
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.
Yes, the bug appears during printing. So, what would be a recommended way to proceed with this? Or should I leave it for later when appropriate functionality on win32u side is implemented?